User: starksm
Date: 01/10/02 19:36:24
Modified: src/main/org/jboss/mq/il/oil OILServerILService.java
Log:
Fix the setBindAddress check of the host argument against null
Revision Changes Path
1.11 +3 -2 jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java
Index: OILServerILService.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- OILServerILService.java 2001/10/03 02:09:09 1.10
+++ OILServerILService.java 2001/10/03 02:36:24 1.11
@@ -46,7 +46,7 @@
* Implements the ServerILJMXService which is used to manage the JVM IL.
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
*/
public class OILServerILService extends org.jboss.mq.il.ServerILJMXService
implements Runnable, OILServerILServiceMBean
{
@@ -421,7 +421,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