Packaging and Deployment
  • /META-INF/persistence.xml
Example persistence.xml File  
  • The persistence.xml file can be packaged in one of the following ways:
Packaging Options  
  1. In an ejb-jar file along with other EJB classes.
  2. In WEB-INF/classes directory along with other web application classes.
  3. In any of the jar files directly located in WEB-INF/lib directory.
  4. In any of the utility jar files in an ear file including jar files that belong to lib directory in an ear file.
  5. In an application client jar file.