db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: Pooled connections are closed?
Date Fri, 06 May 2005 13:53:10 GMT
David Van Couvering wrote:

> Well, more information on this.  It appears if I call getConnection()
> twice on the *same* XAConnection or PooledConnection(), the first
> connection is closed as soon as I get the second connection.  I am not
> sure if this is a bug.

Not a bug, defined by the JDBC spec.

Extract from JDBC 3.0 section 11.4

"Any previously existing Connection object is automatically closed when
the associated PooledConnection.getConnection method is called."


View raw message