On authenticating in Seam over JAAS the EJB SessionContext returns wrong user in a @Asynchronous method

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.