//Suspend it back
h.setEnlistmentSuspended(true);
} catch( Exception e ) {
//In the rare cases where enlistResource throws exception, we
//should return the resource to the pool
PoolManager mgr = Switch.getSwitch().getPoolManager();
mgr.putbackDirectToPool( h, h.getResourceSpec().getConnectionPoolName());
_logger.log(Level.WARNING, "poolmgr.err_enlisting_res_in_getconn");
if (_logger.isLoggable(Level.FINE) ) {
_logger.fine("rm.enlistResource threw Exception. Returning resource to pool");
}
//and rethrow the exception