Hi All
I'm running JBoss (CVS) ontop of CastorJDO v0.8.11 ontop of interbase v6 and I'm
having some trouble with connections not being released from the pool.
The following code from XAConnectionFactory() always attempts to remove an
errorListener when non exists and so throws an exception which means
pool.releaseObject(con) never gets called. Is this the correct behaviour?
Regards
Terry Child
transListener = new TransactionListener() {
public void transactionFinished(XAConnectionImpl con) {
con.clearTransactionListener();
Object tx = wrapperTx.remove(con);
if(tx != null)
wrapperTx.remove(tx);
try {
con.removeConnectionEventListener(errorListener);
} catch(IllegalArgumentException e) {
return; // connection was not closed, but transaction ended
}
pool.releaseObject(con);
}