1 Reply Latest reply on Oct 2, 2006 2:35 AM by Stefan Frank

    Accessing EntityManagerFactory?!

    Stefan Frank Newbie

      Is there a way to get hold of the EntityManagerFactory that produced an injected PersistenceContext?

      I use

      @PersistenceContext
      private EntityManager em;
      


      to inject a PersistenceContext - and I need the EntityManagerFactory from which this EntityManager was generated. Is there a simple way to do that (from a Stateless SessionBean or from an MBean?)

      cheers&thx
      stf