Accessing OpenJMS server from different machines

"Sanjeev Aggarwal" <[email protected]>
Newsgroups gmane.comp.java.openjms.devel
Message-ID <005201c2c071$18934fa0$4e0110ac@saggarwal>
Hi All,

I am running the OpenJMS server on my m/c using "rmi_jms.xml"  as configuration file. I am not able to make connection to this server from a different machine. I am getting the following exception.

javax.jms.JMSException: Failed to locate server, url=//localhost:1099/OpenJMSServer: Connection refused to host: localhost; nested exception is: 
 java.net.ConnectException: Connection refused: no further information
 at org.exolab.jms.client.rmi.RmiJmsServerStub.getDelegate(Unknown Source)
 at org.exolab.jms.client.rmi.RmiJmsServerStub.createConnection(Unknown Source)
 at org.exolab.jms.client.JmsConnection.<init>(Unknown Source)
 at org.exolab.jms.client.JmsTopicConnection.<init>(Unknown Source)
 at org.exolab.jms.client.JmsTopicConnectionFactory.createTopicConnection(Unknown Source)
 at org.exolab.jms.client.JmsTopicConnectionFactory.createTopicConnection(Unknown Source)
 at collaborationmodel.Subscriber.makeJMSConnection(Subscriber.java:330)
 at collaborationmodel.Subscriber.createJMSConnection(Subscriber.java:484)
 at collaborationmodel.Subscriber.init(Subscriber.java:104)
 at DataUpdateServlet.init(DataUpdateServlet.java:52)
 at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 at org.apache.tomcat.core.Handler.init(Handler.java:215)
 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)
 at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
 at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Cannot connect to message server: 172.16.1.78:1099...

Can anybody tell what is wrong.
Do I have to change something in the configuration file before running the server so that it can be accessed from other machines.

Regards,
Sanjeev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.