3637383940414243444546
} public Transaction beginTransaction(MuleContext muleContext) throws TransactionException { Transaction tx = new SpringTransaction(muleContext); tx.begin(); return tx; } public boolean isTransacted() {
136137138139140141142143144145146
public Void doInTransaction() throws Exception { Transaction tx = TransactionCoordination.getInstance().getTransaction(); if (tx != null) { tx.begin(); } MuleMessage result = null; if (pollGlobalEndpoint.get()) {
5758596061626364656667
} } }, transaction.getId()); transaction.begin(); transaction.commit(); transaction.rollback(); // Wait for the notifcation event to be fired as they are queued latch.await(2000, TimeUnit.MILLISECONDS);
3233343536373839404142
4445464748495051525354
else { testTransaction = new TestTransaction(muleContext); } testTransaction.begin(); return testTransaction; } public boolean isTransacted() {
120121122123124125126127128129130
public MuleEvent process() throws Exception { Transaction tx = TransactionCoordination.getInstance().getTransaction(); if (tx != null) { tx.begin(); } MuleMessage result = null; if (pollGlobalEndpoint.get()) {