• 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

JMS vs MDB?

 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would anyone care to elaborate on a situation or circumstance when one would choose to use a Message Driven Bean over a JMS app?
 
Author
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Joe,
To a certain extent it comes down to why you would use any type of bean. You would want to use an MDB if the processing of the message you are going to be doing requires some of the abilities that using an EJB can provide, security, tx, scalability etc.
MDBs really just fufill the requirement for asynchronous communication with EJBs, without having to use startup classes or whatever, and they are not inteneded to replace JMS apps.
------------------
Craig Berry
Author of Professional EJB
 
Author
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly as Craig said. MDB are components like other EJBs. They can use services provided by EJB container, they can be used as facades to enable asynchronous communication etc. They can also optimize the communication with other beans, using local interfaces etc.
Matjaz

------------------
Matjaz Juric
Author of Professional EJB
 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys, that adds some clarity.
 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am replying the very old thread.

I do not understand Craig statement without having to use startup classes ? What startup classes ?
reply
    Bookmark Topic Watch Topic
  • New Topic