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

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

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

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