Java Reference
In-Depth Information
The persistence provider is specified as org.eclipse.persistence.jpa.
PersistenceProvider . The jta-data-source is mapped as java:/app/jdbc/
jdbc/OracleDBConnectionDS , which is a mapping performed by JDeveloper The
java:/app/jdbc prefix gets added in mapping a data source name to the JTA
Data Source name when creating the persistence unit. The jdbc/ prefix and the
DS suffix get added in mapping a connection name to a data source name. The
eclipselink.target-server property is specified as WebLogic_10 . The javax.
persistence.jtaDataSource property is specified as java:/app/jdbc/jdbc/
OracleDBConnectionDS . The persistence.xml configuration file is listed next:
<?xml version="1.0" encoding="Cp1252" ?>
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="em">
<provider>org.eclipse.persistence.jpa.PersistenceProvider
</provider>
<jta-data-source>java:/app/jdbc/jdbc/OracleDBConnectionDS
</jta-data-source>
<class>model.Catalog</class>
<properties>
<property name="eclipselink.target-server"
value="WebLogic_10" />
 
Search WWH ::




Custom Search