This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of messages with multiple mdb's

 
Amey Sane
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Well, I have this kind of trivial problem for me.
I have a JMS queue, where I have some message objects stored.
Multiple MDB instaces can listen to this queue at runtime.
Now, each of this MDB instance picks up an object from the queue, as and when it arrives.
Then, it performs some operations on this object (which is not all that important in this context).
After this, that MDB instance places the object it has processed in another queue.
However, I am not understanding, how do i maintain the order of objects in another queue.
I mean, the order in which objects were picked up from the first queue and the order in which they are placed in another queue after processing, should be same.
Any suggestions?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amey,
What are you trying to accomplish that you need the messages in a certain order? Would putting a sequence number in the message help? More information will help people here give a more useful answer.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot Guarantee the order ,if you use pool of MDBs.

If you want the order use only single MDB.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic