RE: TCP: Connection refused
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
The server host in your configuration file doesn't match that
in the error message i.e,
<ServerConfiguration host="192.168.0.15" ....
Is different to that being connected to by the connection factory:
"tcp://192.168.0.3:3035/"
1. Is your client is connecting to another JNDI service -
possibly one running on 192.168.0.3?
2. Have you've posted the right server configuration? The
host attribute of ServerConfiguration is the one used to
configure the connection factories.
-Tim
> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf
> Of Ganebnyi Genadii
> Sent: Thursday, 4 August 2005 6:30 PM
> To: [email protected]
> Subject: [openjms-user] TCP: Connection refused
>
> When trying to connect to the OpenJMS server, that runs on a
> separate machine, I receive the following error(when running
> on the same machine this does not happen)
>
> 8/4/05 10:52 AM main Debug: Connecting to JMS server at
> tcp://192.168.0.3:3035/ ...
> 8/4/05 10:52 AM main Error: javax.jms.JMSException: Failed
> to create
> connection: java.net.ConnectException: Connection refused at
> org.exolab.jms.client.mipc.IpcJmsServerStub.openConnection(Ipc
> JmsServerStub.java:338)
> at
> org.exolab.jms.client.mipc.IpcJmsServerStub.createConnection(I
> pcJmsServerStub.java:197)
> at
> org.exolab.jms.client.JmsConnection.<init>(JmsConnection.java:189)
> at
> org.exolab.jms.client.JmsTopicConnection.<init>(JmsTopicConnec
> tion.java:81)
> at
> org.exolab.jms.client.JmsTopicConnectionFactory.createTopicCon
> nection(JmsTopicConnectionFactory.java:113)
> at
> org.exolab.jms.client.JmsTopicConnectionFactory.createTopicCon
> nection(JmsTopicConnectionFactory.java:103)
> at cinematic.messaging.jms.JMSClient.<init>(JMSClient.java:129)
> at cinematic.network.xmlrpc.server.Server.start(Server.java:151)
> at
> cinematic.network.xmlrpc.server.CommandLineEntryPoint.main(Com
> mandLineEntryPoint.java:140)
>
> The server configuration file is the following:
>
> <!-- Optional. This represents the default configuration -->
> <ServerConfiguration host="192.168.0.15" embeddedJNDI="true" />
> <TcpConfiguration port="3030" jndiPort="3035"/>
>
> <!-- Required -->
> <Connectors>
> <Connector scheme="rmi">
> <ConnectionFactories>
> <QueueConnectionFactory
> name="RMIQueueConnectionFactory" />
> <TopicConnectionFactory
> name="RMITopicConnectionFactory" />
> </ConnectionFactories>
> </Connector>
> <Connector scheme="tcp">
> <ConnectionFactories>
> <QueueConnectionFactory
> name="TCPQueueConnectionFactory" />
> <TopicConnectionFactory
> name="TCPTopicConnectionFactory" />
> </ConnectionFactories>
> </Connector>
> </Connectors>
>
> Can anybody help?
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development
> Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing & QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf