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

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Apr 4 03:46:58 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-04 03:46:57 -0400 (Fri, 04 Apr 2008)
New Revision: 3889

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

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/ident/Identity.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/ident/Identity.java	2008-04-04 07:43:59 UTC (rev 3888)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/ident/Identity.java	2008-04-04 07:46:57 UTC (rev 3889)
@@ -113,7 +113,7 @@
          }
          ident.calcHashCode();
       }
-      System.setProperty("jboss.identity.domain", domain);
+      SystemUtility.setSystemProperty("jboss.identity.domain", domain);
       _domain = domain;
       NetworkRegistry.getInstance().changeDomain(domain);
    }
@@ -477,21 +477,7 @@
          }
       }
       
-      try
-      {
-         final String finalId = id;
-         AccessController.doPrivileged( new PrivilegedExceptionAction()
-         {
-            public Object run() throws Exception
-            {
-               System.setProperty("jboss.identity", finalId);
-               return null;
-            }
-         });
-      }
-      catch (Exception e)
-      {
-      }
+      SystemUtility.setSystemProperty("jboss.identity", id);
       
       return id;
    }




More information about the jboss-remoting-commits mailing list