| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2006 The Apache Software Foundation. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| version="1.0" |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> |
| |
| <persistence-unit name="camel" transaction-type="RESOURCE_LOCAL"> |
| <!-- |
| The default provider can be OpenJPA, or some other product. |
| This element is optional if OpenJPA is the only JPA provider |
| in the current classloading environment, but can be specified |
| in cases where there are multiple JPA implementations available. |
| --> |
| <provider> |
| org.apache.openjpa.persistence.PersistenceProviderImpl |
| </provider> |
| |
| <class>org.apache.camel.examples.MultiSteps</class> |
| <class>org.apache.camel.examples.SendEmail</class> |
| <class>org.apache.camel.examples.Customer</class> |
| <class>org.apache.camel.examples.Address</class> |
| |
| <properties> |
| <property name="openjpa.ConnectionURL" value="jdbc:derby:target/derby;create=true"/> |
| <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/> |
| <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/> |
| <!-- <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO, SQL=TRACE"/> --> |
| <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="custom" transaction-type="RESOURCE_LOCAL"> |
| <class>org.apache.camel.examples.MultiSteps</class> |
| <class>org.apache.camel.examples.SendEmail</class> |
| |
| <properties> |
| <property name="openjpa.ConnectionURL" value="jdbc:derby:target/custom;create=true"/> |
| <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/> |
| <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/> |
| <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> |
| </properties> |
| </persistence-unit> |
| |
| <!-- START SNIPPET: e1 --> |
| <persistence-unit name="idempotentDb" transaction-type="RESOURCE_LOCAL"> |
| <class>org.apache.camel.processor.idempotent.jpa.MessageProcessed</class> |
| |
| <properties> |
| <property name="openjpa.ConnectionURL" value="jdbc:derby:target/idempotentTest;create=true"/> |
| <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/> |
| <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/> |
| <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> |
| </properties> |
| </persistence-unit> |
| <!-- END SNIPPET: e1 --> |
| |
| <!-- START SNIPPET: e2 --> |
| <persistence-unit name="trace" transaction-type="RESOURCE_LOCAL"> |
| <class>org.apache.camel.processor.interceptor.jpa.JpaTraceEventMessage</class> |
| |
| <properties> |
| <property name="openjpa.ConnectionURL" value="jdbc:derby:target/trace;create=true"/> |
| <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/> |
| <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/> |
| <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> |
| </properties> |
| </persistence-unit> |
| <!-- END SNIPPET: e2 --> |
| |
| </persistence> |