Methods Summary |
---|
public void | associateHandle(java.lang.Object c, ResourceHandle h)
associatedHandles.put(c, h);
|
public void | badConnectionClosed(ConnectionEvent evt)Resource adapters will signal that the connection being closed is bad.
Object connectionHandle = evt.getConnectionHandle();
ResourceHandle handle = resource;
if (associatedHandles.containsKey(connectionHandle)) {
handle = (ResourceHandle) associatedHandles.get(connectionHandle);
}
ManagedConnection mc = (ManagedConnection) evt.getSource();
mc.removeConnectionEventListener(this);
poolMgr.badResourceClosed(handle);
|
public void | connectionClosed(ConnectionEvent evt)
Object connectionHandle = evt.getConnectionHandle();
ResourceHandle handle = resource;
if (associatedHandles.containsKey(connectionHandle)) {
handle = (ResourceHandle) associatedHandles.get(connectionHandle);
}
poolMgr.resourceClosed(handle);
|
public void | connectionErrorOccurred(ConnectionEvent evt)
resource.setConnectionErrorOccurred();
ManagedConnection mc = (ManagedConnection) evt.getSource();
mc.removeConnectionEventListener(this);
poolMgr.resourceErrorOccurred( resource );
try {
mc.destroy();
} catch (Exception ex) {
// ignore exception
}
|
public java.util.Map | getAssociatedHandles()
return associatedHandles;
|
public void | localTransactionCommitted(ConnectionEvent evt)
// no-op
|
public void | localTransactionRolledback(ConnectionEvent evt)
// no-op
|
public void | localTransactionStarted(ConnectionEvent evt)
// no-op
|
public ResourceHandle | removeAssociation(java.lang.Object c)
return (ResourceHandle) associatedHandles.remove(c);
|