openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r934618 - /openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/service/OpenEJBTransactionService.java
Date Thu, 15 Apr 2010 22:06:43 GMT
Author: gerdogdu
Date: Thu Apr 15 22:06:42 2010
New Revision: 934618

URL: http://svn.apache.org/viewvc?rev=934618&view=rev
Log:
update transaction service for user transaction

Modified:
    openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/service/OpenEJBTransactionService.java

Modified: openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/service/OpenEJBTransactionService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/service/OpenEJBTransactionService.java?rev=934618&r1=934617&r2=934618&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/service/OpenEJBTransactionService.java
(original)
+++ openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/service/OpenEJBTransactionService.java
Thu Apr 15 22:06:42 2010
@@ -25,6 +25,7 @@ import javax.transaction.Transaction;
 import javax.transaction.TransactionManager;
 import javax.transaction.UserTransaction;
 
+import org.apache.openejb.core.CoreUserTransaction;
 import org.apache.openejb.loader.SystemInstance;
 import org.apache.webbeans.ee.event.TransactionalEventNotifier;
 import org.apache.webbeans.logger.WebBeansLogger;
@@ -67,7 +68,8 @@ public class OpenEJBTransactionService i
     @Override
     public UserTransaction getUserTransaction()
     {
-        return SystemInstance.get().getComponent(UserTransaction.class);
+        CoreUserTransaction ut = new CoreUserTransaction(getTransactionManager());
+        return ut;
     }
 
     @Override



Mime
View raw message