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

    JNDI and the EntityManager

      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.