You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Adnan Atic <Ad...@hilton.com> on 2006/05/18 00:07:50 UTC

RE: Outside Connection

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.
Thanks 

-----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);

Regards,
Sven

Adnan Atic wrote:

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