question: public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } catch ( ClassCastException cce ) { throw new FBResourceException ( "invalid connection supplied to associateConnection." , cce ) ; } }
target:  Used by the container to change the association of an application-level connection handle with a ManagedConneciton instance. The container should find the right ManagedConnection instance and call the associateConnection method. <P> The resource adapter is required to implement the associateConnection method. The method implementation for a ManagedConnection should dissociate the connection handle (passed as a parameter) from its currently associated ManagedConnection and associate the new connection handle with itself.