db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Van Couvering <David.Vancouver...@Sun.COM>
Subject Re: PooledConnection being closed
Date Mon, 15 Aug 2005 16:36:56 GMT
How are you determining that the connection is closed and that you are 
getting a new connection?

David

Tony Seebregts wrote:

> Hi,
>
> I'm writing a connection pool manager using the 
> EmbeddedConnectionPoolDatasource class. The requesting object gets the 
> Connection object from a PooledConnection  getConnection() , executes 
> a SQL statement and then closes the Connection.
>
> This correctly invokes the ConnectionEventListener.close() method - 
> which simply marks the pooled connection as available for reused. But 
> when I try to resuse the connection originally supplied by the 
> PooledConnection getConnection() method the connection is closed. 
> Calling getConnection returns me a new Connection which is (AFAIK) not 
> the idea.
>
> Any ideas ?
>
> regards
>
> Tony Seebregts
>
>

Mime
View raw message