1 Reply Latest reply on Mar 14, 2012 2:25 PM by Jason Porter

    Stateless bean, @Async annotation, and conversation

    zeeman Novice

      Using Seam 3.1 and AS7.1.


      I have a stateless bean with a @Async method on it. The bean has an EntityManager (managed by Seam) injected. When EM is accessed from the async method I get:


      javax.enterprise.context.ContextNotActiveException: Conversation Context not active.


      If I remove the @Async annotation everything works fine.


      I can make the @Async method works if I inject EM with @persistenceContext instead of @Inject. But I'll lose Seam managed EM features.


      Any ideas on the proper way of using a Seam EM on @Async methods? Or is this an issue with AS7.1?