openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r426351 - /incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ConfigurationProviderImpl.java
Date Fri, 28 Jul 2006 01:16:51 GMT
Author: awhite
Date: Thu Jul 27 18:16:51 2006
New Revision: 426351

URL: http://svn.apache.org/viewvc?rev=426351&view=rev
Log:
Default transaction type to RESOURCE_LOCAL.  Spec changed in late revision
to default based on environment, rather than always defaulting to JTA.


Modified:
    incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ConfigurationProviderImpl.java

Modified: incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ConfigurationProviderImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ConfigurationProviderImpl.java?rev=426351&r1=426350&r2=426351&view=diff
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ConfigurationProviderImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ConfigurationProviderImpl.java
Thu Jul 27 18:16:51 2006
@@ -354,10 +354,12 @@
             _info = new PersistenceUnitInfoImpl();
             _info.setPersistenceUnitName(attrs.getValue("name"));
 
-            // default is JTA according to spec
+            // we only parse this ourselves outside a container, so default
+            // transaction type to local
             String val = attrs.getValue("transaction-type");
             if (val == null)
-                _info.setTransactionType(PersistenceUnitTransactionType.JTA);
+                _info.setTransactionType
+                    (PersistenceUnitTransactionType.RESOURCE_LOCAL);
             else
                 _info.setTransactionType(Enum.valueOf
                     (PersistenceUnitTransactionType.class, val));



Mime
View raw message