RE: JNDI exception

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <003401c53761$848bb170$0100000a@xerces>
> From: James Butler
> 
> Hi,
> 
> I am trying to use JNDI to create my OpenJMS client.
> 
> I have the following properties file "OpenJMS.config":
> 	java.naming.provider.url=tcp://localhost:3035/
> java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory
> 	isTopic=FALSE
> 	MyQueueConnectionFactory=JmsQueueConnectionFactory
> 	MyQueue=queue1
> 
> I read this in using the following code:
> 	props = new Properties();
> 	propFile = new FileInputStream("OpenJMS.config");
> 	props = new Properties();
> 	props.load(propFile);
> 	ctx = new InitialContext(props);
> 
> I perform a lookup using the following:
> 	lookup = (String)props.get("MyQueueConnectionFactory");
> 	queueConnectionFactory = (QueueConnectionFactory) 
> ctx.lookup(lookup);
> 
> This yields the following:
> javax.naming.NamingException
> Operation lookup failed: java.io.EOFException
>    at org.apache.avalon.excalibur.naming.RemoteContext.lookup(Name )
>    at 
> org.apache.avalon.excalibur.naming.AbstractContext.lookup(String )
>    at javax.naming.InitialContext.lookup(String name)
> 
> Any ideas what might be causing this?

Can you connect using the sample programs?

> 
> I've gone through the archives and can't find anthing on this 
> (other than a link to a page that I don't have permission to 
> view despite being a member.. 
> https://sourceforge.net/forum/message.php?msg_id=2324079).

The forums were shut down, but all of the messages are available
in the mail archives. SF's search facility is a bit limited, so
you might like to look at http://news.gmane.org/gmane.comp.java.openjms.user

-Tim



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
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.