/** * provides the current transaction * @return Transaction * @throws SystemException when unable to get the transaction */ public Transaction getTransaction() throws SystemException { return getTransactionManager().getTransaction(); }
/** * provides XATerminator proxy that is Serializable * @param moduleName resource-adapter name * @return XATerminator */ public XATerminator getXATerminatorProxy(String moduleName){ XATerminator xat = getTransactionManager().getXATerminator(); return new XATerminatorProxy(xat); }
private JavaEETransaction getCurrentTransaction() throws SystemException { JavaEETransactionManager txMgr = ConnectorRuntime.getRuntime().getTransactionManager(); return (JavaEETransaction) txMgr.getTransaction(); }
/** * @see java.io.Externalizable */ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { xat = ConnectorRuntime.getRuntime().getTransactionManager().getXATerminator(); } }
public void rollBackTransaction() { try { JavaEETransactionManager tm = ConnectorRuntime.getRuntime().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 } }
/** * delist the <code>ResourceHandle</code> from the transaction * * @param h <code>ResourceHandle</code> object * @param xaresFlag flag indicating transaction success. This can * be XAResource.TMSUCCESS or XAResource.TMFAIL * @exception <code>PoolingException</code> */ public void delistResource(ResourceHandle h, int xaresFlag) { try { JavaEETransactionManager tm = ConnectorRuntime.getRuntime().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 } }
/** * Register the <code>ResourceHandle</code> in the transaction * * @param handle <code>ResourceHandle</code> object * @exception <code>PoolingException</code> If there is any error while * enlisting. */ public void enlistResource(ResourceHandle handle) throws PoolingException{ try { JavaEETransactionManager tm = ConnectorRuntime.getRuntime().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); } }
ConnectorRuntime.getRuntime().getTransactionManager(); boolean txImported = (txManager.getTransaction() != null); listener_.beforeMessageDelivery(method, txImported);
InvocationManager invmgr = ConnectorRuntime.getRuntime().getInvocationManager(); JavaEETransactionManager tm = ConnectorRuntime.getRuntime().getTransactionManager(); Transaction tran = null; try {
try { Transaction tran = null; JavaEETransactionManager tm = ConnectorRuntime.getRuntime().getTransactionManager();
JavaEETransactionManager tm = ConnectorRuntime.getRuntime().getTransactionManager(); Transaction tran = null;
int xaresFlag) { JavaEETransactionManager tm = ConnectorRuntime.getRuntime().getTransactionManager();