Refine search
@After public void tearDown() throws Exception { javax.transaction.TransactionManager txm = com.arjuna.ats.jta.TransactionManager.transactionManager(); assertTrue("There is still a transaction running!", txm.getTransaction() == null ); cleanUp(context); }
@After public void tearDown() throws Exception { javax.transaction.TransactionManager txm = com.arjuna.ats.jta.TransactionManager.transactionManager(); assertTrue("There is still a transaction running!", txm.getTransaction() == null ); cleanUp(context); logService.dispose(); }
Transaction tx = com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction(); if (tx != null) { int testTxState = tx.getStatus();
private TransactionImple getTransactionImple() throws IllegalStateException { javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); TransactionImple transactionImple = null; try { transactionImple = (TransactionImple)tm.getTransaction(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception"), e); } if(transactionImple == null) { throw new IllegalStateException(); } return transactionImple; } }
private TransactionImple getTransactionImple() throws IllegalStateException { javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); TransactionImple transactionImple = null; try { transactionImple = (TransactionImple)tm.getTransaction(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.systemexception"), e); } if(transactionImple == null) { throw new IllegalStateException(); } return transactionImple; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected final boolean transactionRunning() throws SQLException { try { if (com.arjuna.ats.jta.TransactionManager.transactionManager() .getTransaction() != null) { return true; } else { return false; } } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
/** * Return an OutboundBridge instance that maps the current Thread's JTA transaction context * to a WS-AT transaction context. Control of the latter is provided by the returned instance. * * @return as OutboundBridge corresponding to the calling Thread's current JTA transaction context. */ public static org.jboss.jbossts.txbridge.outbound.OutboundBridge getOutboundBridge() { txbridgeLogger.logger.trace("OutboundBridgeManager.getOutboundBridge()"); try { Transaction transaction = (Transaction)TransactionManager.transactionManager().getTransaction(); Uid externalTxId = transaction.get_uid(); if(!outboundBridgeMappings.containsKey(externalTxId)) { createMapping(transaction, externalTxId); } return outboundBridgeMappings.get(externalTxId); } catch(SystemException e) { txbridgeLogger.logger.error(e); } return null; }
public void setRollbackOnly() { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionSynchronizationRegistryImple.setRollbackOnly"); } javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); try { Transaction transaction = tm.getTransaction(); if(transaction == null) { throw new IllegalStateException(); } tm.setRollbackOnly(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception"), e); } }
public void beforeCompletion () { try { javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); if (_currentStatus != INITIAL_STATUS) _currentStatus = ERROR_STATUS; else _currentStatus = BEFORE_COMPLETION_STATUS; System.out.println("beforeCompletion called from "+tm.getTransaction()); } catch (Exception ex) { ex.printStackTrace(); _currentStatus = ERROR_STATUS; } }
/** * @message com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception * [com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception] * The transaction implementation threw a SystemException */ public Object getTransactionKey() { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionSynchronizationRegistryImple.getTransactionKey"); } javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); TransactionImple transactionImple = null; try { transactionImple = (TransactionImple)tm.getTransaction(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception"), e); } if (transactionImple == null) { return null; } else { return transactionImple.get_uid(); } }
public void setRollbackOnly() { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionSynchronizationRegistryImple.setRollbackOnly"); } javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); try { Transaction transaction = tm.getTransaction(); if(transaction == null) { throw new IllegalStateException(); } tm.setRollbackOnly(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.systemexception"), e); } }
.transactionManager(); javax.transaction.Transaction tx = tm.getTransaction();
public void afterCompletion (int status) { try { javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); if (_currentStatus != BEFORE_COMPLETION_STATUS) _currentStatus = ERROR_STATUS; else _currentStatus = AFTER_COMPLETION_STATUS; System.out.println("afterCompletion called: "+JTAHelper.stringForm(status)+" from "+tm.getTransaction()); } catch (Exception ex) { ex.printStackTrace(); _currentStatus = ERROR_STATUS; } }
@Test public void test() throws Exception { javax.transaction.TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); tm.begin(); javax.transaction.Transaction theTransaction = tm.getTransaction(); tm.commit(); tm.resume(theTransaction); } }