[jboss-remoting-commits] JBoss Remoting SVN: r5894 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/registry.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Sat Jul 3 15:00:36 EDT 2010
Author: ron.sigal at jboss.com
Date: 2010-07-03 15:00:36 -0400 (Sat, 03 Jul 2010)
New Revision: 5894
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/registry/InvokerRegistryRaceTestCase.java
Log:
JBREM-1231: Wrapped all state changing calls to InvokerRegistry in PrivilegedAction.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/registry/InvokerRegistryRaceTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/registry/InvokerRegistryRaceTestCase.java 2010-07-03 18:27:59 UTC (rev 5893)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/registry/InvokerRegistryRaceTestCase.java 2010-07-03 19:00:36 UTC (rev 5894)
@@ -2,6 +2,8 @@
import java.net.InetAddress;
import java.net.MalformedURLException;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
import java.util.HashMap;
import java.util.Map;
@@ -273,7 +275,14 @@
{
try
{
- InvokerRegistry.updateServerInvokerLocator(locator, locator);
+ AccessController.doPrivileged( new PrivilegedAction()
+ {
+ public Object run()
+ {
+ InvokerRegistry.updateServerInvokerLocator(locator, locator);
+ return null;
+ }
+ });
if ((i + 1) % (counter / 5) == 0)
{
log.info(this + " updated locator: " + (i + 1));
More information about the jboss-remoting-commits
mailing list