[jboss-svn-commits] JBL Code SVN: r29303 - in labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx: jts and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Sep 10 13:14:21 EDT 2009


Author: vicky.kak at jboss.com
Date: 2009-09-10 13:14:21 -0400 (Thu, 10 Sep 2009)
New Revision: 29303

Modified:
   labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerService.java
   labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jts/TransactionManagerService.java
Log:
One off patch for JBTM-598(JBPAPP-2654)

Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerService.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerService.java	2009-09-10 16:53:12 UTC (rev 29302)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerService.java	2009-09-10 17:14:21 UTC (rev 29303)
@@ -48,6 +48,8 @@
 import com.arjuna.ats.arjuna.coordinator.TxControl;
 import com.arjuna.ats.arjuna.coordinator.TxStats;
 import com.arjuna.ats.arjuna.recovery.RecoveryManager;
+import com.arjuna.ats.arjuna.common.arjPropertyManager;
+import com.arjuna.ats.arjuna.utils.Utility;
 
 import com.arjuna.ats.internal.tsmx.mbeans.PropertyServiceJMXPlugin;
 import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
@@ -127,7 +129,11 @@
         this.getLog().info("JBossTS Transaction Service (JTA version) - JBoss Inc.");
 
         this.getLog().info("Setting up property manager MBean and JMX layer");
-
+        
+        // recovery manager properties must be installed before the tx system is initialized. JBTM-598
+        arjPropertyManager.propertyManager = PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");
+        Utility.getpid(); // socketProcessId needs to own the port, not the tsm. yuck.
+        
         /** Set the tsmx agent implementation to the local JBOSS agent impl **/
         LocalJBossAgentImpl.setLocalAgent(this.getServer());
         System.setProperty(com.arjuna.ats.tsmx.TransactionServiceMX.AGENT_IMPLEMENTATION_PROPERTY,

Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jts/TransactionManagerService.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jts/TransactionManagerService.java	2009-09-10 16:53:12 UTC (rev 29302)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_SP5_CP05_JBPAPP-2654/atsintegration/classes/com/arjuna/ats/jbossatx/jts/TransactionManagerService.java	2009-09-10 17:14:21 UTC (rev 29303)
@@ -48,6 +48,8 @@
 import com.arjuna.ats.arjuna.coordinator.TransactionReaper;
 import com.arjuna.ats.arjuna.coordinator.TxStats;
 import com.arjuna.ats.arjuna.recovery.RecoveryManager;
+import com.arjuna.ats.arjuna.common.arjPropertyManager;
+import com.arjuna.ats.arjuna.utils.Utility;
 import com.arjuna.orbportability.ORB;
 import com.arjuna.orbportability.OA;
 
@@ -129,7 +131,11 @@
         this.getLog().info("JBossTS Transaction Service - JBoss Inc.");
 
         this.getLog().info("Setting up property manager MBean and JMX layer");
-
+        
+        // recovery manager properties must be installed before the tx system is initialized. JBTM-598
+        arjPropertyManager.propertyManager = PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");
+        Utility.getpid(); // socketProcessId needs to own the port, not the tsm. yuck.
+        
         /** Set the tsmx agent implementation to the local JBOSS agent impl **/
         LocalJBossAgentImpl.setLocalAgent(this.getServer());
         System.setProperty(com.arjuna.ats.tsmx.TransactionServiceMX.AGENT_IMPLEMENTATION_PROPERTY,



More information about the jboss-svn-commits mailing list