RE: Need help with HTTP connectors and Tunnel servlet
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Try dropping the trailing "/" in the URL. ie. properties.put(Context.PROVIDER_URL, http://localhost:8080); Let us know if it works - if so, its a bug in the InitialContextFactory implementation. -Tim _____ From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Ramalakshmi Vijayakumar Sent: Thursday, 10 November 2005 8:55 AM To: [email protected] Subject: [openjms-user] Need help with HTTP connectors and Tunnel servlet HI , I am new to JMS. openJMS server and tomcat is in the same machine As specified in the doc, copied the tunnel servlet to the my tomcat install And updated the openjms conf file to <Connector scheme="http"> <ConnectionFactories> <ConnectionFactory name="HTTPConnectionFactory"/> </ConnectionFactories> </Connector> </Connectors> <HttpConfiguration port="3030" jndiPort="3030" bindAll="true" webServerHost="10.0.5.28" webServerPort="8080" servlet="/openjms-tunnel/tunnel"/> I have a message sender that send message to a queue And the receiver that is trying to receive the message I am trying to get the context, here the code for creating context , I am getting error Hashtable properties = new Hashtable(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); properties.put(Context.PROVIDER_URL, "http://localhost:8080/"); context = new InitialContext(properties); Error: Failed to create initial JNDI context: javax.naming.CommunicationException: Failed to get registry s ervice for URL: http://localhost:8080/ [Root exception is java.rmi.ConnectIOException: Failed to cre ate connection; nested exception is: org.exolab.jms.net.connector.ConnectException: Failed to connect to URI=http://localhost:808 0/] javax.naming.CommunicationException: Failed to get registry service for URL: http://localhost:8080/ [Root exception is java.rmi.ConnectIOException: Failed to create connection; nested exception is: org.exolab.jms.net.connector.ConnectException: Failed to connect to URI=http://localhost:808 0/] at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFa ctory.java:14 5) Am I missing anything here? Please let me know Thanks Rama