Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Message Driven Beans  RSS feed

 
shawn kennedy
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a queue of messages is sent to MDB from different components how will the MDB know from which component is which message coming
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you place some information in either the message body or the header indicating what component is sending the message, the MDB won't know. But then again, that's the point...
Kyle
P.S. What you're asking is a fundamental question about messaging architecture. I'd really recommend the book Enterprise Integration Patterns by Hohpe and Woolf, which explains how to design for messaging systems.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!