You can inject the EntityManagerFactory into the ManagedPersistenceContext using
components.xml
<persistence:managed-persistence-context name="entityManager"
entity-manager-factory="#{entityManagerFactory}"/>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103635#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...