This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JMS - JNDI API lookup failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS - JNDI API lookup failed" Watch "JMS - JNDI API lookup failed" New topic
Author

JMS - JNDI API lookup failed

Nagarajan Krishnamurthy
Greenhorn

Joined: Sep 26, 2003
Posts: 20
Hi,
Iam new to jms .am following same example what has been given by sun viz.,SimpleQueueSender.When i try to run this class using the command

java -Djms.properties=%J2EE_HOME%\config\jms_client.properties SimpleQueueSender MyQueue 3

It throws an exception like the following one :

Queue name is MyQueue
JNDI API lookup failed: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial


NOTE:I dont have the property file "jms_client.properties"
What should be the content in it.

Can anybody be able to guide me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS - JNDI API lookup failed
 
Similar Threads
J2EE1.3 / JNDI .... and jms
javax.naming.NoInitialContextException
JNDI lookup for JMS...URGENT!
How to run a JMS application using eclipse IDE
Error while using MDB with JMS