Methods Summary |
---|
public void | delistResource(ResourceHandle h, int xaresFlag)delist the ResourceHandle from the transaction
try {
J2EETransactionManager tm =
Switch.getSwitch().getTransactionManager();
Transaction tran = tm.getTransaction();
if (tran != null) {
tm.delistResource(tran, h, xaresFlag);
}
} catch (SystemException ex) {
_logger.log(Level.WARNING,"poolmgr.system_exception",ex);
} catch (IllegalStateException ex) {
// ignore
}
|
public void | enlistResource(ResourceHandle handle)Register the ResourceHandle in the transaction
try {
J2EETransactionManager tm =
Switch.getSwitch().getTransactionManager();
Transaction tran = tm.getTransaction();
if (tran != null) {
tm.enlistResource(tran, handle);
}
} catch (Exception ex) {
_logger.log(Level.SEVERE,"poolmgr.unexpected_exception",ex);
throw new PoolingException(ex.toString(), ex);
}
|
public java.lang.Object | getComponent()Return null for System Resource.
return null;
|
public javax.transaction.Transaction | getTransaction()Returns the transaction component is participating.
_logger = LogDomains.getLogger(LogDomains.RSR_LOGGER);
try {
J2EETransactionManager tm =
Switch.getSwitch().getTransactionManager();
return tm.getTransaction();
} catch (Exception ex) {
_logger.log(Level.SEVERE,"poolmgr.unexpected_exception",ex);
throw new PoolingException(ex.toString(), ex);
}
|
public void | registerResource(ResourceHandle handle)Dont do any thing for System Resource.
|
public void | rollBackTransaction()
try {
J2EETransactionManager tm =
Switch.getSwitch().getTransactionManager();
Transaction tran = tm.getTransaction();
if ( tran != null ) {
tran.setRollbackOnly();
}
} catch (SystemException ex) {
_logger.log(Level.WARNING,"poolmgr.system_exception",ex);
} catch (IllegalStateException ex) {
// ignore
}
|
public void | unregisterResource(ResourceHandle resource, int xaresFlag)Dont do any thing for System Resource.
|