[jboss-user] [JBoss Seam] - Re: Problems loading EntityManager in

msystems do-not-reply at jboss.com
Mon Feb 11 13:48:47 EST 2008


  |   <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



More information about the jboss-user mailing list