Version 3

    A wrapper for the real connection to the managed resource.

    It is this object that gets pooled by the application server.

    ManagedConnections  are created by the resource adapters ManagedConnectionFactory

     

    • In general, when you implement ManagedConnection, you should have a boolean class member to accurately model whether an instance of your implementation has been destroyed or not. Both the JDBC and JMS implementations of ManagedConnection contain a boolean so that the correct semantics are implemented.