java - Is there clean way to pass context data to @Asynchronous ejb call? -
in wildfly execute stateless ejb method asynchronously (it mapped @asynchronous annotation). in calling method have context information in thread local. best way pass data async method? don't want add additional parameter async method signature.
essentially have 2 options:
- passing value parameter
- storing value in global place. static variable.
the first option cleaner , easier. don't use second 1 :)
Comments
Post a Comment