[jboss-remoting-commits] JBoss Remoting SVN: r3890 - remoting2/branches/2.x/src/main/org/jboss/remoting/network.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Apr 4 03:48:19 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-04 03:48:19 -0400 (Fri, 04 Apr 2008)
New Revision: 3890

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/network/NetworkRegistry.java
Log:
JBREM-934: Uses SystemUtility.setSystemProperty().

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/network/NetworkRegistry.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/network/NetworkRegistry.java	2008-04-04 07:46:57 UTC (rev 3889)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/network/NetworkRegistry.java	2008-04-04 07:48:19 UTC (rev 3890)
@@ -37,6 +37,7 @@
 import org.jboss.remoting.InvokerRegistry;
 import org.jboss.remoting.detection.ServerInvokerMetadata;
 import org.jboss.remoting.ident.Identity;
+import org.jboss.remoting.util.SystemUtility;
 
 /**
  * NetworkRegistry is a concrete implemenation of the NetworkRegistryMBean
@@ -268,9 +269,9 @@
       Identity identity = Identity.get(this.mBeanServer);
       // this is a slight hack, but we have to have some way to know the main
       // JBoss MBeanServer data
-      System.setProperty("jboss.remoting.jmxid", identity.getJMXId());
-      System.setProperty("jboss.remoting.instanceid", identity.getInstanceId());
-      System.setProperty("jboss.remoting.domain", identity.getDomain());
+      SystemUtility.setSystemProperty("jboss.remoting.jmxid", identity.getJMXId());
+      SystemUtility.setSystemProperty("jboss.remoting.instanceid", identity.getInstanceId());
+      SystemUtility.setSystemProperty("jboss.remoting.domain", identity.getDomain());
       return objectName;
    }
 
@@ -281,7 +282,7 @@
     */
    public synchronized void changeDomain(String newDomain)
    {
-      System.setProperty("jboss.remoting.domain", newDomain);
+      SystemUtility.setSystemProperty("jboss.remoting.domain", newDomain);
       NetworkInstance servers[] = getServers();
       if(servers == null || servers.length <= 0)
       {




More information about the jboss-remoting-commits mailing list