tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r508533 - /incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/CoreDeploymentInfo.java
Date Fri, 16 Feb 2007 18:55:23 GMT
Author: djencks
Date: Fri Feb 16 10:55:22 2007
New Revision: 508533

URL: http://svn.apache.org/viewvc?view=rev&rev=508533
Log:
Change default tx policy to Required for session beans

Modified:
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/CoreDeploymentInfo.java

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/CoreDeploymentInfo.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/CoreDeploymentInfo.java?view=diff&rev=508533&r1=508532&r2=508533
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/CoreDeploymentInfo.java
(original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/CoreDeploymentInfo.java
Fri Feb 16 10:55:22 2007
@@ -287,13 +287,13 @@
                     policy = new MessageDrivenBeanManagedTxPolicy((TransactionContainer)
container);
                 }
             } else if (componentType == BeanType.STATEFUL) {
-                policy = new TxNotSupported((TransactionContainer) container);
+                policy = new TxRequired((TransactionContainer) container);
                 policy = new StatefulContainerManagedTxPolicy(policy);
             } else if (componentType == BeanType.CMP_ENTITY) {
                 // default cmp policy is required
                 policy = new TxRequired((TransactionContainer) container);
             } else {
-                policy = new TxNotSupported((TransactionContainer) container);
+                policy = new TxRequired((TransactionContainer) container);
             }
             methodTransactionPolicies.put(method, policy);
         }



Mime
View raw message