incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r910653 - /incubator/aries/trunk/ariestrader-sample/modules/ariestrader-entities/src/main/resources/META-INF/persistence.xml
Date Tue, 16 Feb 2010 19:23:47 GMT
Author: jbohn
Date: Tue Feb 16 19:23:47 2010
New Revision: 910653

URL: http://svn.apache.org/viewvc?rev=910653&view=rev
Log:
ARIES-144 eliminate duplicate persistence.xml and use the one in entities

Modified:
    incubator/aries/trunk/ariestrader-sample/modules/ariestrader-entities/src/main/resources/META-INF/persistence.xml

Modified: incubator/aries/trunk/ariestrader-sample/modules/ariestrader-entities/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/ariestrader-sample/modules/ariestrader-entities/src/main/resources/META-INF/persistence.xml?rev=910653&r1=910652&r2=910653&view=diff
==============================================================================
--- incubator/aries/trunk/ariestrader-sample/modules/ariestrader-entities/src/main/resources/META-INF/persistence.xml
(original)
+++ incubator/aries/trunk/ariestrader-sample/modules/ariestrader-entities/src/main/resources/META-INF/persistence.xml
Tue Feb 16 19:23:47 2010
@@ -36,8 +36,29 @@
             <property name="openjpa.Sequence" value="table(Table=OPENJPASEQ, Increment=100)"/>
             <property name="openjpa.jdbc.UpdateManager" value="org.apache.openjpa.jdbc.kernel.BatchingConstraintUpdateManager"/>
         </properties>
+    </persistence-unit>
         
-        
+    <persistence-unit transaction-type="JTA" name="ariestrader-cm">
+        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+        <!--<jta-data-source>javax.sql.DataSource/(osgi.jndi.serviceName=jdbc/TradeDataSource)</jta-data-source>-->
+        <!--<non-jta-data-source>javax.sql.DataSource/(osgi.jndi.serviceName=jdbc/NoTxTradeDataSource)</non-jta-data-source>-->
+        <jta-data-source>aries:services/javax.sql.DataSource/(osgi.jndi.serviceName=jdbc/TradeDataSource)</jta-data-source>
+        <non-jta-data-source>aries:services/javax.sql.DataSource/(osgi.jndi.serviceName=jdbc/NoTxTradeDataSource)</non-jta-data-source>
+         
+        <class>org.apache.aries.samples.ariestrader.beans.AccountDataBeanImpl</class>
+        <class>org.apache.aries.samples.ariestrader.beans.AccountProfileDataBeanImpl</class>
+        <class>org.apache.aries.samples.ariestrader.beans.HoldingDataBeanImpl</class>
+        <class>org.apache.aries.samples.ariestrader.beans.OrderDataBeanImpl</class>
+        <class>org.apache.aries.samples.ariestrader.beans.QuoteDataBeanImpl</class>
+        <exclude-unlisted-classes>true</exclude-unlisted-classes>
+       
+        <properties>
+            <property name="openjpa.BrokerImpl" value="non-finalizing" /> 
+            <property name="openjpa.Sequence" value="table(Table=OPENJPASEQ, Increment=100)"/>
+            <property name="openjpa.jdbc.UpdateManager" value="org.apache.openjpa.jdbc.kernel.BatchingConstraintUpdateManager"/>
+        </properties>
+    </persistence-unit>
+
         <!-- 
         <properties>
             <property name="openjpa.jdbc.DBDictionary" value="derby" />
@@ -50,5 +71,4 @@
             <property name="openjpa.jdbc.UpdateManager" value="com.ibm.ws.persistence.jdbc.kernel.OperationOrderUpdateManager(batchLimit=0)"
/> 
         </properties>
         -->
-    </persistence-unit>
 </persistence>



Mime
View raw message