Sunday, May 16, 2010

EclipseLink Weblogic persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/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">
<persistence-unit name="testJPA" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

<jta-data-source>jdbc/OracleDS</jta-data-source>
<non-jta-data-source>jdbc/OracleDS</non-jta-data-source>


<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.logging.level" value="FINE"/>
<property name="eclipselink.jdbc.batch-writing" value="JDBC"/>
</properties>

</persistence-unit>
</persistence>


Oracle JPA Tutorial
http://www.oracle.com/technology/pub/articles/cioroianu-eclipse-jpa.html

Eclipse JPA Tutorial
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Tutorial_Source

No comments:

Post a Comment