RE: Accessing OpenJMS server from different machines
"Tim Anderson" <tima-k+1zm/[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
(CC'ing this to openjms-user as it should have been asked there...) You need to set the host in ServerConfiguration e.g: <ServerConfiguration host="myhost" /> Regards, Tim -----Original Message----- From: openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of Sanjeev Aggarwal Sent: Monday, January 20, 2003 9:46 PM To: openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: [openjms-developer] Accessing OpenJMS server from different machines 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(Unknow n Source) at org.exolab.jms.client.JmsTopicConnectionFactory.createTopicConnection(Unknow n 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(LoadOnStartup Interceptor.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