• 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

Example to write MDB Application

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

I written small application which is used to send and receive messages by using JMS.
Now i want to convert that applicatin into MDB.Could you suggest how to do this
Or you can give me a sample application on MDB.Which will help to solve my issue.

Thanks in advance

 
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Have your MessageListener class implement the MessageDrivenBean interface.
2. Remove all your bootstrap logic (which includes looking up the connectionfactory/destination etc)
3. Specify some info (Destincation type, acknowledge mode etc) in a ejb-jar.xml file.
4. Specify other info (Connection Factory JNDI name, Destincation JNDI Name etc) in server specific files. For example in weblogic you would do that in weblogic-ejb-jar.xml and in another deployment file which ends with a .jms extension.
5. Deploy the bean in your server

ram.

 
reply
    Bookmark Topic Watch Topic
  • New Topic