Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.11.0
-
None
-
None
Description
As the spec says
http://docs.oracle.com/javaee/6/api/javax/resource/spi/ManagedConnection.html#cleanup()
"The cleanup of ManagedConnection instance resets its client specific state and prepares the connection to be put back in to a connection pool. The cleanup method should not cause resource adapter to close the physical pipe and reclaim system resources associated with the physical connection."
We should not send RemoveInfo on cleanup, but just clean client side state. The result of "closing" a connection on cleanup is that connection will not be cached when using XA transactions, causing high CPU usage on the broker.