4 Replies Latest reply on Aug 31, 2008 12:31 PM by Pete Muir

    Why do JEE5 examples not have entityManager?

    Chris Simons Expert

      All,


      I noticed that the JEE5 examples that come bundled with Seam 2.02 do not include the following line in components.xml.



         <persistence:managed-persistence-context name="entityManager"
                     auto-create="true"
                     persistence-unit-jndi-name="java:/#{project.name}/entityManagerFactory"/>



      Does this mean you can't use entityManager without this line?  What if we add this line to our own project while trying to build to a non-JBoss AS, will we still be able to use entityManager?


      Thanks.