Skip to content

Instantly share code, notes, and snippets.

@xstefank
Created March 31, 2019 07:46
Show Gist options
  • Save xstefank/81cfa17dfd2bf0a918a63cca56dbe44b to your computer and use it in GitHub Desktop.
Save xstefank/81cfa17dfd2bf0a918a63cca56dbe44b to your computer and use it in GitHub Desktop.
@LRA(type = REQUIRES_NEW, end = true)
public void doInLRA(@HeaderParam(LRA_HTTP_HEADER) String lraId) {
// lraid = 123
restInvoke(456); \\ REST invocation with LRA id = 456 to doInLRA2 method
// here I would say LRA 123 should be ended (not LRA 456)
}
@LRA(type = MANDATORY, end = false)
public void doInLRA2() {
}
@mmusgrov
Copy link

mmusgrov commented Apr 1, 2019

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment