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:

  1. passing value parameter
  2. storing value in global place. static variable.

the first option cleaner , easier. don't use second 1 :)


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -