Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
langjava
TransactionManager tm = (TransactionManager) getContext().getTransactionManager();
tm.begin();

InOut me = createInOut();
getContext().getDeliveryChannel().sendSync(me);
// retrieve the out message
me.setStatus(ExchangeStatus.DONE);
getContext().getDeliveryChannel().sendSyncsend(me);

tm.commit();

Sending asynchronous transactional exchanges

...