dev@glassfish.java.net

JCA question: when is ManagedConnection.cleanup() called?

From: Frank Kieviet <Frank.Kieviet_at_Sun.COM>
Date: Fri, 20 Mar 2009 13:14:06 -0700

Hi,

 

Migrating some JCA tests from v2 to v2.1, I noticed some differences in
behavior. It appears that in v2, ManagedConnection.cleanup() was being
called by GlassFish as soon as the adapter sends a
ConnectionEvent.CONNECTION_CLOSED event to GlassFish. In v2.1 it appears
that this call is being delayed until the transaction is committed. Am I
mistaken?

 

TiA, Frank