[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...

Ron Sigal ron_sigal at yahoo.com
Wed May 23 01:11:49 EDT 2007


  User: rsigal  
  Date: 07/05/23 01:11:49

  Modified:    src/main/org/jboss/remoting  ServerInvoker.java
  Log:
  JBREM-687:  When it replaces host 0.0.0.0 in InvokerLocator with real address (or name), it reregisters with InvokerRegistry.
  
  Revision  Changes    Path
  1.63      +3 -1      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.62
  retrieving revision 1.63
  diff -u -b -r1.62 -r1.63
  --- ServerInvoker.java	24 Jan 2007 16:55:08 -0000	1.62
  +++ ServerInvoker.java	23 May 2007 05:11:48 -0000	1.63
  @@ -64,7 +64,7 @@
    *
    * @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
    * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  - * @version $Revision: 1.62 $
  + * @version $Revision: 1.63 $
    */
   public abstract class ServerInvoker extends AbstractInvoker implements ServerInvokerMBean
   {
  @@ -389,6 +389,8 @@
            String newLocatorUrl = oldLocatorUrl.replace(InvokerLocator.ANY, newHost);
            externalLocator = new InvokerLocator(newLocatorUrl);
   
  +         // need to update the locator key used in the invoker registry
  +         InvokerRegistry.updateServerInvokerLocator(locator, externalLocator);
         }
   
         return externalLocator;
  
  
  



More information about the jboss-cvs-commits mailing list