120121122123124125126127128129130
if (beanTransaction == null) { return; } try { beanTransaction.rollback(); } catch (Exception e) { logger.error("Error rolling back suspended transaction for discarded stateful session bean instance"); } } }
271272273274275276277278279280281
Transaction tx = getTransaction(); if (tx == null) { throw new IllegalStateException("No transaction associated with current thread"); } try { tx.rollback(); } finally { unassociate(); } }
138139140141142143144145146147148
} // This thread has to join the tx tm.resume(tx); try { tx.rollback(); } finally { tm.suspend(); }
809810811812813814815816817818819
{ if (started != null) { try { started.rollback(); } catch (Exception e) { JMSBridgeTest.log.error("Failed to rollback", e); }
SystemException { Transaction tx = getTransaction(); if (tx == null) throw new IllegalStateException("no transaction associated with thread"); tx.rollback(); // Disassociate tx from thread. setTransaction(null); }
8485868788899091929394
cache = null; } // BW. kind of a hack to destroy jndi binding and thread local tx before next run. Transaction c = TransactionSetup.getManager().getTransaction(); if (c != null) c.rollback(); if (tx != null) { try {
8990919293949596979899
{ public void run() { try { t.rollback(); } catch (Exception e) { exceptions.add(e); }
918919920921922923924925926927928
assertNull(rm3); tx.delistResource(res, XAResource.TMSUCCESS); //Now rollback the tx - this should cause redelivery of the two messages tx.rollback(); rm1 = (TextMessage)cons.receive(1000); assertNotNull(rm1);
10291030103110321033103410351036103710381039
627628629630631632633634635636637
{ if (started != null) { try { started.rollback(); } catch (Exception e) { log.error("Failed to rollback", e); }