ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Open Connections with WAS 6.0
Date Wed, 02 Nov 2005 14:07:13 GMT
Well...it's hard to guess at the cause when you throw in "and native
JDBC connectivity". We have no idea what that could be doing.

My only suggestion would be to ensure that you're properly closing
connections (and all other resources in the case of the native JDBC --
statements, resultsets and connections).

With any iBATIS code, ensure that you're using the appropriate transaction
pattern. Either automatic transactions (i.e. without calling
start/commit/end), or using a block like this:

try {
//...do work
} finally {

On 10/27/05, Mitchell, Steven C <Steven.Mitchell@umb.com> wrote:
> Has anybody had issues with too many open connections using iBatis
> SIMPLE datasources and IBM WebSphere Application Server 6.0? One of my
> developers has an application that uses a mixture of iBatis and native
> JDBC connectivity. When he tests with WAS 5.1 there are only a handful
> of open connections at a time. When he tests with WAS 6.0 using the
> same code there are dozens of open connections. The SQL Mapping config
> settings are all the same. I can't imagine how the application server
> would affect connectivity since we aren't using container managed data
> sources. Any ideas?

View raw message