|   <persistence:managed-persistence-context name="entityManager"
  |                                            auto-create="true"
  |                                            
persistence-unit-jndi-name="java:/maxcontrolEntityManagerFactory" />

The persistence component is named 'entityManager' and you try to get it by the 
name 'myEntityManager'.


  | EntityManager entityManager = (EntityManager) 
Component.getInstance("myEntityManager");
  | 

Try:


  | EntityManager entityManager = (EntityManager) 
Component.getInstance("entityManager");
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128456#4128456

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128456
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to