geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: rev 55498 - geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context
Date Mon, 25 Oct 2004 13:34:24 GMT
Author: gdamour
Date: Mon Oct 25 06:34:23 2004
New Revision: 55498

Modified:
   geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
Log:
Add a method to return the TransactionManager which is used under the hook of the TransactionContextManager.

Modified: geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
==============================================================================
--- geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
(original)
+++ geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContextManager.java
Mon Oct 25 06:34:23 2004
@@ -26,6 +26,7 @@
 import javax.transaction.Status;
 import javax.transaction.SystemException;
 import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
 import javax.transaction.xa.XAException;
 import javax.transaction.xa.XAResource;
 import javax.transaction.xa.Xid;
@@ -65,6 +66,10 @@
         this.recovery = recovery;
     }
 
+    public TransactionManager getTransactionManager() {
+        return transactionManager;
+    }
+    
     public TransactionContext getContext() {
         return TransactionContext.getContext();
     }
@@ -276,6 +281,8 @@
 
     static {
         GBeanInfoFactory infoFactory = new GBeanInfoFactory(TransactionContextManager.class);
+
+        infoFactory.addOperation("getTransactionManager");
         infoFactory.addOperation("getContext");
         infoFactory.addOperation("setContext", new Class[]{TransactionContext.class});
         infoFactory.addOperation("newContainerTransactionContext");

Mime
View raw message