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?
This isn't possible, unless you scope your EM to a different scope.