I'm implementing creating a generic Recoverable that wraps a JCA ManagedConnection.
How do I clean up after I'm done with the managed connection? Do I call managedConnection.destroy(), cleanup() or both?
thanks
Just destroy.
Cleanup is for when you want to return it to the pool.