[jboss-cvs] JBoss Messaging SVN: r3187 - trunk/src/main/org/jboss/messaging/core/jmx.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 11 12:46:55 EDT 2007
Author: clebert.suconic at jboss.com
Date: 2007-10-11 12:46:54 -0400 (Thu, 11 Oct 2007)
New Revision: 3187
Modified:
trunk/src/main/org/jboss/messaging/core/jmx/JDBCMBeanSupport.java
trunk/src/main/org/jboss/messaging/core/jmx/JDBCServiceSupport.java
Log:
http://jira.jboss.com/jira/browse/JBMESSAGING-1102
Modified: trunk/src/main/org/jboss/messaging/core/jmx/JDBCMBeanSupport.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/jmx/JDBCMBeanSupport.java 2007-10-09 18:34:46 UTC (rev 3186)
+++ trunk/src/main/org/jboss/messaging/core/jmx/JDBCMBeanSupport.java 2007-10-11 16:46:54 UTC (rev 3187)
@@ -34,7 +34,7 @@
import org.jboss.messaging.util.ExceptionUtil;
import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.tm.TransactionManagerServiceMBean;
+import org.jboss.tm.TransactionManagerLocator;
/**
* A JDBCMBeanSupport
@@ -167,11 +167,7 @@
// lazy initialization
if (tm == null)
{
- TransactionManagerServiceMBean tms =
- (TransactionManagerServiceMBean)MBeanServerInvocationHandler.
- newProxyInstance(getServer(), tmObjectName, TransactionManagerServiceMBean.class, false);
-
- tm = tms.getTransactionManager();
+ tm = TransactionManagerLocator.getInstance().locate();
}
return tm;
Modified: trunk/src/main/org/jboss/messaging/core/jmx/JDBCServiceSupport.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/jmx/JDBCServiceSupport.java 2007-10-09 18:34:46 UTC (rev 3186)
+++ trunk/src/main/org/jboss/messaging/core/jmx/JDBCServiceSupport.java 2007-10-11 16:46:54 UTC (rev 3187)
@@ -34,7 +34,7 @@
import org.jboss.messaging.util.ExceptionUtil;
import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.tm.TransactionManagerServiceMBean;
+import org.jboss.tm.TransactionManagerLocator;
/**
* MBean wrapper for any service that needs database attributes
@@ -168,11 +168,7 @@
// lazy initialization
if (tm == null)
{
- TransactionManagerServiceMBean tms =
- (TransactionManagerServiceMBean)MBeanServerInvocationHandler.
- newProxyInstance(getServer(), tmObjectName, TransactionManagerServiceMBean.class, false);
-
- tm = tms.getTransactionManager();
+ tm = TransactionManagerLocator.getInstance().locate();
}
return tm;
More information about the jboss-cvs-commits
mailing list