Re: Need help with HTTP connectors and Tunnel servlet

Sale Rahul <rahulsale-/[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hello,
WE had similar issue, and we fixed it by setting URL
as follows :
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);
In above your code instead of 
properties.put(Context.PROVIDER_URL,"/openjms-tunnel/tunnel"/");


Try it out. May be that will work for you as well....



With Best Regs
Rahul Saley

properties.put(Context.PROVIDER_URL,"http://localhost:8080/");







--- Ramalakshmi Vijayakumar <[email protected]>
wrote:

> 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 
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
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.