On authenticating in Seam over JAAS the EJB SessionContext returns wrong user in a @Asynchronous method
Issue
- EJB SessionContext returns wrong user in a @Asynchronous method.
- In the application, after calling an @Asynchronous Seam method implemented by a Stateless Session Bean we need to retrieve the authenticated user.
- The Principal inside the EJB that was executed asynchronously is returning the wrong user from the previous execution.
- Unable to propagate the authenticated user to EJB container after calling an @Asynchronous Seam method.
Environment
- JBoss Enterprise Application Platform (EAP) 5
- Seam 2.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.