7 Replies Latest reply on Oct 15, 2006 3:53 PM by Andrew Rubinger

    JNDI and the EntityManager

    Eric Ray Novice

      Instead of injecting the EntityManager like so...

      @PersistenceContext(unitName="some_name")
      EntityManager em;
      


      can I use JNDI to look up an EntityManager with a specific persistence unit?

      If so, what would the naming path be?

      Thanks.