Need help with HTTP connectors and Tunnel servlet
"Ramalakshmi Vijayakumar" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
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(InitialConte
xtFactory.java:14
5)
Am I missing anything here? Please let me know
Thanks
Rama