aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS Vs. MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS Vs. MDB" Watch "JMS Vs. MDB" New topic
Author

JMS Vs. MDB

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
Can anyone tell me the difference between the Message Driven Beans and JMS?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
JMS is a programming interface for message-oriented middleware (MOM) systems while MDB is a component model for event-based computing in the J2EE environment. Under the hood, a J2EE container uses the JMS API for getting messages to pass on from the MOM product.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
To even simpify on what Lasse said... an MDB is merely a consumer of a JMS message, nothing more. Therefore MDBs do not replace JMS, they compliment it.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Thanks Chris, I sometimes make myself wonder what I'm trying to say...
Juan Rolando Prieur-Reza
Ranch Hand

Joined: Jun 20, 2003
Posts: 236
Originally posted by Lasse Koskela:
Thanks Chris, I sometimes make myself wonder what I'm trying to say...

I liked your first definitions - very precise and unambiguous. No need to back away in my opinion.


Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by john prieur:
I liked your first definitions - very precise and unambiguous.
Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS Vs. MDB