User: starksm 
  Date: 01/10/02 19:36:02

  Modified:    src/main/org/jboss/mq/il/uil Tag: Branch_2_4
                        UILServerILService.java
  Log:
  Fix the setBindAddress check of the host argument against null
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.4   +3 -2      jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java
  
  Index: UILServerILService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/uil/UILServerILService.java,v
  retrieving revision 1.2.2.3
  retrieving revision 1.2.2.4
  diff -u -r1.2.2.3 -r1.2.2.4
  --- UILServerILService.java   2001/10/03 02:08:54     1.2.2.3
  +++ UILServerILService.java   2001/10/03 02:36:02     1.2.2.4
  @@ -50,7 +50,7 @@
    *
    * @author     Hiram Chirino ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.2.2.3 $
  + * @version    $Revision: 1.2.2.4 $
    */
   public class UILServerILService extends org.jboss.mq.il.ServerILJMXService 
implements Runnable, UILServerILServiceMBean {
      protected ServerSocket serverSocket;
  @@ -373,7 +373,8 @@
      /** Set the interface address the OIL server bind its listening port on */
      public void setBindAddress(String host) throws UnknownHostException
      {
  -      if( host != null || host.length() == 0 )
  +      // If host is null or empty use any address
  +      if( host == null || host.length() == 0 )
            bindAddress = null;
         else
            bindAddress = InetAddress.getByName(host);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to