User: starksm
Date: 01/10/02 19:08:54
Modified: src/main/org/jboss/mq/il/oil Tag: Branch_2_4
OILServerILService.java
Log:
We need to check the socketAddress against "0.0.0.0/0.0.0.0"
because this is not a valid address on Win32 while it is for
*NIX. See BugParade bug #4343286.
Revision Changes Path
No revision
No revision
1.2.2.3 +7 -1 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.2.2.2
retrieving revision 1.2.2.3
diff -u -r1.2.2.2 -r1.2.2.3
--- OILServerILService.java 2001/09/30 01:14:11 1.2.2.2
+++ OILServerILService.java 2001/10/03 02:08:52 1.2.2.3
@@ -50,7 +50,7 @@
*
* @author Hiram Chirino ([EMAIL PROTECTED])
* @created August 16, 2001
- * @version $Revision: 1.2.2.2 $
+ * @version $Revision: 1.2.2.3 $
*/
public class OILServerILService extends org.jboss.mq.il.ServerILJMXService
implements Runnable, OILServerILServiceMBean {
protected ServerSocket serverSocket;
@@ -136,6 +136,12 @@
worker = new Thread(server.threadGroup, this, "OIL Worker");
worker.start();
+ /* We need to check the socketAddress against "0.0.0.0/0.0.0.0"
+ because this is not a valid address on Win32 while it is for
+ *NIX. See BugParade bug #4343286.
+ */
+ if( socketAddress.toString().equals("0.0.0.0/0.0.0.0") )
+ socketAddress = InetAddress.getLocalHost();
serverIL = new OILServerIL(socketAddress, serverSocket.getLocalPort());
bindJNDIReferences();
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development