[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ron Sigal
ron_sigal at yahoo.com
Sat Jun 2 02:49:01 EDT 2007
User: rsigal
Date: 07/06/02 02:49:01
Modified: src/main/org/jboss/remoting Tag: remoting_2_x
ServerInvoker.java
Log:
JBREM-687: (1) replaced parseBoolean with jdk 1.4 compatible code; (2) replaced call to String.replace() with jdk 1.4 compatible code.
Revision Changes Path
No revision
No revision
1.52.2.32 +5 -7 JBossRemoting/src/main/org/jboss/remoting/ServerInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServerInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/ServerInvoker.java,v
retrieving revision 1.52.2.31
retrieving revision 1.52.2.32
diff -u -b -r1.52.2.31 -r1.52.2.32
--- ServerInvoker.java 23 May 2007 04:42:26 -0000 1.52.2.31
+++ ServerInvoker.java 2 Jun 2007 06:49:01 -0000 1.52.2.32
@@ -69,7 +69,7 @@
* @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
* @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
*
- * @version $Revision: 1.52.2.31 $
+ * @version $Revision: 1.52.2.32 $
*/
public abstract class ServerInvoker extends AbstractInvoker implements ServerInvokerMBean
{
@@ -1091,7 +1091,7 @@
String bindByHost = System.getProperty(InvokerLocator.BIND_BY_HOST, "True");
try
{
- byHost = Boolean.parseBoolean(bindByHost);
+ byHost = Boolean.valueOf(bindByHost).booleanValue();
}
catch(Exception e)
{
@@ -1117,10 +1117,8 @@
throw new RuntimeException("Can not determine bindable address for locator (" + locator + ")");
}
- // now create new locator with new host
- String oldLocatorUrl = locator.getLocatorURI();
- String newLocatorUrl = oldLocatorUrl.replace(InvokerLocator.ANY, newHost);
- externalLocator = new InvokerLocator(newLocatorUrl);
+ externalLocator = new InvokerLocator(locator.protocol, newHost, locator.port,
+ locator.getPath(), locator.getParameters());
// need to update the locator key used in the invoker registry
InvokerRegistry.updateServerInvokerLocator(locator, externalLocator);
More information about the jboss-cvs-commits
mailing list