3.9.1.2. EntityManager Injection

Java EE application servers allow you to inject entity managers into your session beans using the PersistenceContext annotation. See your application server documentation for details.