Skip to content

Instantly share code, notes, and snippets.

@sajithdilshan
Created November 15, 2017 07:53
Show Gist options
  • Save sajithdilshan/99fa7f7e8248e55b10a4d5c0b0f792fa to your computer and use it in GitHub Desktop.
Save sajithdilshan/99fa7f7e8248e55b10a4d5c0b0f792fa to your computer and use it in GitHub Desktop.
@Override
protected boolean doReceiveAndExecute(Object invoker, Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException {
if (status != null) {
TransactionInformation.txnStatus.set(status);
}
return super.doReceiveAndExecute(invoker, session, consumer, status);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment