I was about to ask the same question, but then I saw this post. My solution is to just
use
@EJB ExtEntityManager em; instead of @PersistenceContext EntityManager em;, but if you use
multiple persistence units, it may not be such a practical approach.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046823#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...