This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run a JMS application using eclipse IDE  RSS feed

 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "unable to run" mean - does the server blow up? Does the code run fine outside of the IDE?
 
Gokul Nanthakumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
always you need application server or MOM to work with JMS, you can connect to weblogic from eclipse and work, remember eclipse is a IDE not server.
 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am unable to find the file jndi.properties in the j2ee.jar file . can anyone explain why i am getting the javax.naming.InitialContext exception ?
 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am unable to find the file jndi.properties in the j2ee.jar file . can anyone explain why i am getting the javax.naming.InitialContext exception ?
 
Gokul Nanthakumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could you please post the exact exception what you are getting?
 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java reads this file only if it is in application classpath, place the file in your classpath and try.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!