5.6 How to obtain the container-managed EntityManager

To obtain the container-managed EntityManager from the J2EE application, use one of the following methods:

The following subsections describe each of the methods.

Organization of this section
5.6.1 Method of injecting EntityManager in the application
5.6.2 Method of looking up EntityManager from the application
5.6.3 Overriding the @PersistenceContext definition using the DD