wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS - JNDI API lookup failed" Watch "JMS - JNDI API lookup failed" New topic

JMS - JNDI API lookup failed

Nagarajan Krishnamurthy

Joined: Sep 26, 2003
Posts: 20
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
How to run a JMS application using eclipse IDE
Error while using MDB with JMS
J2EE1.3 / JNDI .... and jms
JNDI lookup for JMS...URGENT!