A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads and Synchronization
Queue up messages based on a field
Joined: Jan 13, 2009
May 22, 2012 11:47:32
I have a number of threads delivering messages to my app.
Each message is basically an Object with an id.
I need to create a single queue for messages related to that id.
i.e. each queue will only contain Objects with the same ID.
Any advice/code samples appreciated.
Joined: Jan 03, 2004
May 22, 2012 12:02:46
Sounds like you want a
It is sorta covered in the
JavaRanch Style Guide
subject: Queue up messages based on a field
Maintaining single queue for all recievers in jms
Single MDB instane - multiple messages ?
mdb doesn't catch messages in point2point
Locking on multiple simultaneous inserts
putting back into the queue the JMS messages
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013