-
1. Re: How can a servlet in a remote tomcat access the JBossMQ
kennel May 27, 2004 8:25 AM (in response to kennel)I do not describle the problem clearly..sorry
What I want to know is which files I should copy to the remote machine from which a servlet will connect to JBossMQ. -
2. Re: How can a servlet in a remote tomcat access the JBossMQ
adrian.brock May 27, 2004 8:26 AM (in response to kennel)1) Getting Started Guide
2) Search
3) The examples on the WIKI -
3. Re: How can a servlet in a remote tomcat access the JBossMQ
kennel May 27, 2004 10:13 AM (in response to kennel)I get the error as follow,
javax.servlet.ServletException: Exception in processign request javax.naming.CommunicationException: Failed to connect to server 0.0.0.0:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 0.0.0.0:1100 [Root exception is java.net.ConnectException: Connection refused: connect]]
SimplePublisher.doGet(SimplePublisher.java:35)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
and my code is as follows,
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "localhost:1100"); // HA-JNDI port.
InitialContext iniCtx = new InitialContext(p);
// copy from a example from Wikis...
I have copied the neccessary jars such as jbossmq-client.jar jnp-client.jar jboss-common-client.jar concurrent.jar
Thanks -
4. Re: How can a servlet in a remote tomcat access the JBossMQ
adrian.brock May 27, 2004 6:05 PM (in response to kennel)http://cvs.sourceforge.net/viewcvs.py/jboss/jbossmx/src/main/org/jboss/ha/jndi/HANamingService.java?only_with_tag=JBoss_3_2_4_RC2
or as a workaround
./run.sh -b myhost.com