Sort ObjectMessage in Queue.
linkinMar 7 2012 — edited Mar 8 2012Hi,
Publisher send some ObjectMessage(any pojo) in to the queue. let there are 5 message in queue.
When Consumer is wake up it reads the queue and sort all the queue objects (on the basis of some property of pojo class i.e entry_date, priority_level) and pick the top one and process and leave the rest in to the queue. And do the above thing again and again until the queue is empty.
So my question is that is it possible to implements?if yes the give some way.
Thanks & Regards