You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by de...@apache.org on 2010/01/11 08:08:30 UTC

svn commit: r897774 - /geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml

Author: delos
Date: Mon Jan 11 07:08:29 2010
New Revision: 897774

URL: http://svn.apache.org/viewvc?rev=897774&view=rev
Log:
DAYTRADER-70 daytrader EJB3 mode does not work caused by JDBC driver cannot be found

Added:
    geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml

Added: geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml?rev=897774&view=auto
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml (added)
+++ geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml Mon Jan 11 07:08:29 2010
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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" version="1.0">
+
+    <persistence-unit transaction-type="JTA" name="daytrader">
+        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+        <jta-data-source>jdbc/TradeDataSource</jta-data-source>  
+        <non-jta-data-source>jdbc/NoTxTradeDataSource</non-jta-data-source> 
+        
+        <class>org.apache.geronimo.samples.daytrader.beans.AccountDataBean</class>
+        <class>org.apache.geronimo.samples.daytrader.beans.AccountProfileDataBean</class>
+        <class>org.apache.geronimo.samples.daytrader.beans.HoldingDataBean</class>
+        <class>org.apache.geronimo.samples.daytrader.beans.OrderDataBean</class>
+        <class>org.apache.geronimo.samples.daytrader.beans.QuoteDataBean</class>
+        <exclude-unlisted-classes>true</exclude-unlisted-classes>
+        
+        <properties>
+            <property name="openjpa.jdbc.DBDictionary" value="derby" /> 
+            <property name="openjpa.BrokerImpl" value="non-finalizing" />
+            <!-- To enable OpenJPA to generate foreign key constraints, comment out this line -->
+            <!-- <property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/> -->
+            <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+            <property name="openjpa.Sequence" value="table(Table=OPENJPASEQ, Increment=100)"/>
+        </properties>
+    </persistence-unit>
+</persistence>