blob: 20c70d94ae8a29d10a5ebed971b927950b10da5c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" ?>
<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_2_0.xsd"
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="employee" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/EmployeeDS</jta-data-source>
<properties>
<!-- Configure the JEE server platform. -->
<property name="eclipselink.target-server" value="weblogic" />
<!--
The database platform is auto-detected by default,
if you want to set a specific platform this can be set.
-->
<!-- property name=""eclipselink.target-database" value="Oracle" / -->
<!-- Configure cache size. -->
<!--
Full is used for this example to ensure nothing garbage collects,
but is not a good practice in general Soft, SoftCache or HardCache are best
-->
<property name="eclipselink.cache.type.default" value="Full" />
<property name="eclipselink.cache.size.default" value="1000" />
<property name="eclipselink.cache.coordination.protocol" value="rmi" />
<!-- As of EclipseLink 2.2 the url is not required for a cluster, as JNDI is replicated in a WLS cluster, so the local JNDI is sufficient -->
<!-- Outside of a cluster, or previous to EclipseLink 2.2, a url must be given,
this should be the local server's url, but in a cluster could be any server's url, or use localhost (because JNDI is replicated).
This can also be set as a System property, or using a SessionCustomizer, which avoids having a persistence.xml per server.
localhost may not work, machine name/ip may be required.
-->
<!--property name="eclipselink.cache.coordination.rmi.url" value="t3://localhost:7021/" /-->
<!-- user/password should not be required -->
<!--property name="eclipselink.cache.coordination.jndi.user" value="weblogic" />
<property name="eclipselink.cache.coordination.jndi.password" value="welcome1" /-->
<!-- The following properties are not required, these are the defaults, but they could be configured if required. -->
<!--property name="eclipselink.cache.coordination.rmi.announcement-delay" value="1000" />
<property name="eclipselink.cache.coordination.rmi.multicast-group" value="239.192.0.0" />
<property name="eclipselink.cache.coordination.rmi.multicast-group.port" value="3121" />
<property name="eclipselink.cache.coordination.packet-time-to-live" value="2" /-->
<!-- Configure database to be created on startup if not already existing. -->
<property name="eclipselink.ddl-generation" value="create-tables" />
<!-- Configure logging for demonstration. -->
<property name="eclipselink.logging.logger" value="DefaultLogger" />
<property name="eclipselink.logging.level" value="FINEST" />
</properties>
</persistence-unit>
</persistence>