Table of Contents
EntityManager instances for application use.
OpenJPA extends the standard
interface with the
OpenJPAEntityManagerFactory to provide additional
Within a container, you will typically use injection to
EntityManagerFactory. There are, however,
alternative mechanisms for
Some vendors may supply public constructors for their
EntityManagerFactory implementations, but we recommend using the
Java Connector Architecture (JCA) in a managed environment, or the
methods in an unmanaged environment, as described in
. These strategies allow
vendors to pool factories, cutting down on resource utilization.