ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Many DB sessions are left
Date Thu, 06 Dec 2007 04:54:22 GMT
Are you using a connection pool that is created outside of iBATIS?

Larry


On Dec 5, 2007 7:13 PM, 瀧内誠 <mtakiuch@kantei.co.jp> wrote:
>
> Hi,
>
> I have a problem.
>
> I use java1.5, iBatis2,3 Oracle10G, tomcat6.
>
> Though servlet processing was over, a lot of Oracle sessions are left.
> Do you know a solution?
>
>
> ---------------part of program------------------------------
> Reader reader = Resources.getResourceAsReader(RESOURCE_FILE);
> SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
> sqlMap.startTransaction();
> List<Map> list1 = (List<Map>) sqlMap.queryForList("getData");
> sqlMap.endTransaction ();
> sqlMap = null;
> reader = null;
> list1 = null;
> ---------------part of program------------------------------
>
> Thank You in Advance
> Makoto Takiuchi
>

Mime
View raw message