ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Boden <list...@pandora.be>
Subject Re: Outside Connection
Date Thu, 13 Apr 2006 15:46:08 GMT

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?
> 
>
>  
>


Mime
View raw message