JNDI exception

"James Butler" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
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?

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

Regards,

Jim


********************************************************

This email message is for the sole use of the intended recipient(s) and
may contain confidential and/or privileged information. Any unauthorized
review, use, disclosure, printing, copying or distribution is
prohibited.  If you are not, or believe you are not, the intended
recipient, please contact our systems administrator immediately at
[email protected] and destroy all copies of the original message and
any attachments.

Any views or opinions presented are solely those of the author and do
not necessarily represent those of QUMAS.

QUMAS has a virus detection policy but cannot accept responsibility for
any loss or damage arising from the opening or use of this email and/or
attachments.


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30
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.