ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adnan Atic" <Adnan_A...@hilton.com>
Subject RE: Outside Connection
Date Wed, 17 May 2006 22:07:50 GMT
Thanks for the answer.
However I am using ibatis DAO Api and am having hard time figuring out
how to get it to use already initiated connection.

Any help would be greatly appreciated.

-----Original Message-----
From: Sven Boden [mailto:list123@pandora.be] 
Sent: Thursday, April 13, 2006 10:46 AM
To: user-java@ibatis.apache.org
Subject: Re: Outside Connection

It exists... it's called openSession as in e.g. :

    locator = ServiceLocator.getInstance();
    ds = (DataSource)locator.getDataSource("jdbc/myOracleDb");
    conn = ds.getConnection("giuseppe", "verdi");

    // SqlMapClient and SqlMapSession
    sqlMap = SqlAppConfig.getSqlMapInstance();
    sqlSess = sqlMap.openSession(conn);


Adnan Atic wrote:

>Is it possible to pass already initiated db connection to Ibatis?

View raw message