aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes How to run a JMS application using eclipse IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How to run a JMS application using eclipse IDE" Watch "How to run a JMS application using eclipse IDE" New topic
Author

How to run a JMS application using eclipse IDE

ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

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
What does "unable to run" mean - does the server blow up? Does the code run fine outside of the IDE?


Android appsImageJ pluginsJava web charts
Gokul Nanthakumar
Ranch Hand

Joined: May 11, 2010
Posts: 52
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

Joined: Mar 10, 2010
Posts: 198

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

Joined: Mar 10, 2010
Posts: 198

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

Joined: May 11, 2010
Posts: 52
could you please post the exact exception what you are getting?
ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

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
java reads this file only if it is in application classpath, place the file in your classpath and try.
 
I agree. Here's the link: http://jrebel.com/download
 
subject: How to run a JMS application using eclipse IDE
 
Similar Threads
JMS
AroundInvoke
parsing XML & running JSP in Eclipse
JMS development using Eclipse
Eclipse - Jonas Integartion with Lomboz