Packaging and Deployment
  • /META-INF/persistence.xml
Example persistence.xml File  
    <?xml version="1.0" encoding="UTF-8"?>
      <persistence xmlns="http://java.sun.com/xml/ns/persistence">
      <persistence-unit name ="pu1">
      <jta-data-source>jdbc/DataSource1</jta-data-source>
      </persistence-unit>
    </persistence>
  • The persistence.xml file can be packaged in one of the following ways:
Packaging Options