Apache OpenJPA 4.2.0 User’s Guide: Official User Guide for Apache OpenJPA.
OpenJPA offers two EntityManagerFactory deployment options.
EntityManagerFactory
Standalone Deployment
EntityManager Injection