Methods Summary |
---|
public void | cleanup(ResourceHandle h)
try {
ManagedConnection mc = (ManagedConnection) h.getResource();
mc.cleanup();
} catch (Exception ex) {
_logger.log(Level.WARNING, "managed_con.cleanup-failed", ex);
throw new PoolingException(ex.toString(), ex);
}
|
public void | closeUserConnection(ResourceHandle resource)
try {
ManagedConnection mc = (ManagedConnection) resource.getResource();
mc.cleanup();
} catch (ResourceException ex) {
throw new PoolingException(ex);
}
|
public void | destroyResource(ResourceHandle resourceHandle)
throw new UnsupportedOperationException();
|
public void | fillInResourceObjects(ResourceHandle resourceHandle)
throw new UnsupportedOperationException();
|
public java.util.Set | getInvalidConnections(java.util.Set connectionSet)
if(mcf instanceof ValidatingManagedConnectionFactory){
return ((ValidatingManagedConnectionFactory)this.mcf).
getInvalidConnections(connectionSet);
}
return null;
|
public java.lang.Object | getSharedConnection(ResourceHandle h)
throw new UnsupportedOperationException();
|
public boolean | isConnectionValid(ResourceHandle h)
HashSet conn = new HashSet();
conn.add( h.getResource() );
Set invalids = null;
try {
invalids = getInvalidConnections( conn );
} catch( ResourceException re ) {
//ignore and continue??
}
if ( (invalids != null && invalids.size() > 0) ||
h.hasConnectionErrorOccurred() ) {
return false;
}
return true;
|
public boolean | isTransactional()
return true;
|
public boolean | matchConnection(ResourceHandle h)
Set set = new HashSet();
set.add(h.getResource());
try {
ManagedConnection mc =
mcf.matchManagedConnections(set, subject, reqInfo);
return (mc != null);
} catch (ResourceException ex) {
return false;
}
|
public boolean | shareableWithinComponent()
return false;
|
public boolean | supportsReauthentication()
return this.desc.supportsReauthentication();
|