• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which Project To Create For JMS??

 
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I want to write a JMS code in Eclipse. I am very new to JMS. But the question is which project to select for creating a JMS? Would the EJB Project be good enough? Or do i have to select the Enterprise Application Project under JAVA EE?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of JMS-related code are you planning to write? If a message-driven EJB, then use an EJB Project. If a standalone client app, then use an Application Client Project. The Enterprise Application Project is meant to gather several other projects together into an EAR file - you usually do not add code to such a project.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Peter for the reply! I was planning to write a standalone client application!
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One possibility is to create a standard Java Project, and then add the JMS API JAR file (from your messaging server) to the project.

Another possibility if to create a Java EE | Application Client Project. The project creation wizard has you select an app server and then Eclipse includes that app server's JAR files (which includes the JMS API JAR) in your project. (This works for me in Eclipse 3.4.2, but not in 3.5 - JAR file inclusion seems to be broke in 3.5, either that or one of my plugins is causing a problem.)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic