Hi Yes, @Async breaks http request propagation almost by design. I recommabd you to do you checks before calling the task or passing a Message object with the info you need before becoming async.
Le 22 mai 2017 06:36, "chongma" <[email protected]> a écrit : > hi, i wonder if anyone can help me. i have a question about > javax.ejb.Asynchronous. i am injecting an @ApplicationScoped which calls > httpServletRequest.isUserInRole. but there is no httpServletRequest > > i created a gist here > https://gist.github.com/chongma/6d06c598656a3967a2e20dfc24facb00 > > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/Asynchronous-httpServletRequest-tp4681723.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
