• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS vs MDB?

 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • 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?
 
Craig Berry
Author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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
 
Matjaz Juric
Author
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks guys, that adds some clarity.
 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • 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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic