28.4.2. Boostrapping JPA in Seam
Install the following built-in component to have Seam bootstrap a JPA
EntityManagerFactory
from your persistence.xml
file:
<persistence:entity-manager-factory name="entityManagerFactory"/>
To make a Seam-managed JPA
EntityManager
available via injection, configure a managed persistence context as follows:
<persistence:managed-persistence-context name="entityManager" entity-manager-factory="#{entityManagerFactory}"/>