Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the relationship between JMS and MDB?

 
hagee doou
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic