-
1. Re: JBoss3RC1, returning connections
davidjencks Apr 30, 2002 12:21 PM (in response to vad)Thanks, I think there are several problems there... I don't have time to test right this minute, can you check if this works (it compiles, but that's all I checked):
public void connectionClosed(ConnectionEvent ce)
{
getCcm().unregisterConnection(NoTxConnectionManager.this, ce.getConnectionHandle());
try
{
unregisterAssociation((ManagedConnection)ce.getSource(), ce.getConnectionHandle());
if (isManagedConnectionFree())
{
returnManagedConnection(this.getManagedConnection(), false);
}
}
catch (ResourceException re)
{
log.error("ResourceException while closing connection handle!", re);
} // end of try-catch
} -
2. Re: JBoss3RC1, returning connections
vad May 2, 2002 5:36 AM (in response to vad)Hi David,
I will upgrade to RC2, because in the RC1 source code, unregisterAssociation() takes only the mc as argument. I have still made the change, but other problems occur : cleanup() is called twice on the mc, once in BaseConnectionmanager2.unregisterAssociation() and once in InternalManagedConnectionPool.returnConnection()...
I'll tell you about my testing.
vad