5.7 How to obtain the application-managed EntityManager

When the application-managed EntityManager is used, the application uses EntityManagerFactory to create EntityManager. There are two methods by which the application obtains EntityManagerFactory:

The following is a description of the methods:

Organization of this section
5.7.1 Method of injecting EntityManagerFactory in the application
5.7.2 Method of looking up EntityManagerFactory from the application
5.7.3 Overriding the @PersistenceUnit definition using the DD