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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content