try {
ResourceHandle handle = getResourceHandle();
if (!localHandle_.equals(handle)) {
ManagedConnection mc = (ManagedConnection) handle.getResource();
mc.associateConnection(userHandle);
LocalTxConnectionEventListener l =
(com.sun.enterprise.resource.listener.LocalTxConnectionEventListener) handle.getListener();
if(_logger.isLoggable(Level.FINE)){
_logger.log(Level.FINE, "connection_sharing_start", userHandle);
}
l.associateHandle(userHandle, localHandle_);
} else{
associatedTransaction = getCurrentTransaction();
}
} catch (Exception ex) {
handleResourceException(ex);