*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes What is the relationship between JMS and MDB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "What is the relationship between JMS and MDB?" Watch "What is the relationship between JMS and MDB?" New topic
Author

What is the relationship between JMS and MDB?

hagee doou
Greenhorn

Joined: Apr 12, 2009
Posts: 8
I draw JMS and MDB in component diagrams.

Is JMS depends on MDB or MDB depends on JMS?

In high logic view, it should be MDB depends on JMS.
but,in implement, shoud be JMS depends on MDB. JMS call MDB method.

Another Question:
I send a message to a MDB. the MDB will process the message.
Should I:
Create a seperate component for JMS<<infrastructure>> and the MDB depends on it.
OR just add a Interface to MDB called JMS interface?
which one is correct or better?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

MDBs hide much of the complexity of JMS, similar to how entity beans/JPA hides much of the complexity of JDBC.

-Cameron McKenzie
J J Wright
Ranch Hand

Joined: Jul 02, 2008
Posts: 254
I'm not sure what you're trying to achieve here. Are you communicating your design or trying to model the implementation of your application server?


SCJP, SCWCD, SCBCD, SCEA 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the relationship between JMS and MDB?