Hello all , i have made a simple JMS application using eclipse IDE i.e. i have made a queuesender.java which sends the message and a queuereceiver which recieves the messages . however i am unable to run the application using weblogic server . Can anyone explain how to run a JMS application in Eclipse IDE.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
What does "unable to run" mean - does the server blow up? Does the code run fine outside of the IDE?
I have made a QueueSender and a QueueReceiver and am trying to compile the QueueSender . My JMS application will be targeted to WEblogic server . However , while doing so i get the following exception
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
I have made a jndi.properties file along with the source java classes QueueSender and QueueReceiver . I am still getting the same exception , can anyone help ?
Gokul Nanthakumar
Ranch Hand
Joined: May 11, 2010
Posts: 52
posted
0
java reads this file only if it is in application classpath, place the file in your classpath and try.