Sometimes this happens if the router runs on a Unix host. The local IP is 
resolved as 127.0.0.1, wrapped within the connection factory you lookup 
and then your remote client cannot connect. 

Some releases ago we've added a bindaddress property for JMS & routing 
listeners. Specify the router's IP address for your JMS plainsocket 
listener and it works. Check the JMS Swiftlet property docs for the prop 
name.

-- 
Andreas Mueller, IIT GmbH, Bremen/Germany, http://www.iit.de
SwiftMQ - JMS Enterprise Messaging System, http://www.swiftmq.com


-----Original Message-----
From: Ron Cordell <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Tue, 3 Jul 2001 22:24:20 +0200
Subject: [developers] Socket Connection Refused

> After reading your mail and then the docs, it appears that the routing 
> swiftler connector parameters are used to help find a remote router. I
> don't 
> think that is needed in my case. Here is a little more information:
> 
> I have a SwiftMQ router on a machine at 192.168.0.123, on port 4001.
> (RH 
> Linux 7.1 JDK 1.3 SunSoft).
> 
> I have a JMS client on another machine, say 192.168.0.132, that is
> attempting 
> to connect to the router on this machine. One client that I have
> attempted 
> this with is the cli script, modified to specify the IP address of the
> remote 
> machine. (Linux, JDK 1.3.0 SunSoft)
> 
> Attempts to connect to the router on the remote machine result in an 
> message:
> 
> Welcome to SwiftMQ!
> 
> Username:
> Password:
> Trying to connect ... failed, exception: error creating socket
> connection to 
> 127.0.0.1:4001, message: Connection refused
> 
> 
> The exception text is weird, reporting a host IP addr of 127.0.0.1, so
> this 
> is causing some consternation as well.
> 
> Thanks again,
> 
> Ron Cordell
> 
> 
> On Tuesday 03 July 2001 15:59, you wrote:
> > Difficult to tell without knowing the environment. In our
> configuration, we
> > have to modify the property file (smqr.properties) when moving to a
> > different machine. If this should apply in your case, too: Did you
> check
> > the Routing Swiftlet parameters
> (swiftlet.sys$routing.connectors.names,
> > swiftlet.sys$routing.connectors.<<name>>.hostname,
> > swiftlet.sys$routing.connectors.<<name>>.port)?
> > Good Luck.
> >
> > Alexander Ortloff
> >
> > -----Original Message-----
> > From: Ron Cordell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 03, 2001 9:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: [developers] Socket Connection Refused
> >
> >
> > Hello,
> >
> > I have been working with SwiftMQ and have done most of my development
> on
> > the
> >
> > same machine on which SwiftMQ is running. However, now I have put
> SwiftMQ
> > on
> >
> > another machine (running as "router1") and I am unable to connect to
> it.
> >
> > I am unable to connect to the machine either using the machine name
> or its
> > IP
> > address, using the following (adapted from the cli script):
> >
> > java -cp
> >
> ../../jars/swiftmq.jar:../../jars/jndi.jar:../../jars/jms.jar:../../jar
> s/js
> >s e.jar:../../jars/jnet.jar:../../jars/jcert.jar
> > com.swiftmq.admin.cli.CLI smqp://192.168.0.123:4001
> plainsocket@router1
> >
> > I must be doing something stupid, but I haven't been able to
> determine what
> > it is.
> >
> > I can telnet to the machine, I can ping the machine's IP address; as
> far as
> > I
> > can tell it is not a network problem.
> >
> > Thanks in advance,
> >
> > Ron Cordell
> >
> > ------------------------------------------------------
> > SwiftMQ developers mailing list * http://www.swiftmq.com
> > To unsubscribe from this list, send an eMail to
> > [EMAIL PROTECTED] and write in the body of your message:
> > UNSUBSCRIBE developers <your-email-address>
> > Archive: http://www.mail-archive.com/developers@mail.iit.de/
> 
> ------------------------------------------------------
> SwiftMQ developers mailing list * http://www.swiftmq.com
> To unsubscribe from this list, send an eMail to 
> [EMAIL PROTECTED] and write in the body of your message:
> UNSUBSCRIBE developers <your-email-address>
> Archive: http://www.mail-archive.com/developers@mail.iit.de/
> 
> 
> 
> 


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to