Skip to content

Instantly share code, notes, and snippets.

@NagyGa1
Created March 25, 2017 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NagyGa1/076dce8c64ec080fbde85a64e07621f6 to your computer and use it in GitHub Desktop.
Save NagyGa1/076dce8c64ec080fbde85a64e07621f6 to your computer and use it in GitHub Desktop.
Accessing transaction status and key in JEE
@Resource
TransactionSynchronizationRegistry tsr;
public String startActivity(@Nonnull final PolicyActivity activity) {
LOG.debug("em: {}, tsr: {} {}", em, tsr.getTransactionStatus(), tsr.getTransactionKey());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment