HornetQ - How to manage Consumers of 'Message Grouping'
문제
After sending several messages with a Group-ID set (message grouping), how can I manage their delivery, to have a consumer for each Group-ID?
And how does it works if my Message Consumer is a Message-Driven Bean?
The idea is to implement parallel-processing for each Group-ID.
해결책
The server will ellect a Group-id randomically based on your consumers...
if you have a message driven bean, you will have multiple consumers per MDBs... each grouopID will be delivered to a single consumer.
if you ned to elect your consumer.. simply don't use message groups.. just use selectors.
The use-case of message grouping is to automatically manage the consumer selection. If you want to bound to a specific consumer just set a property and use filters.. that's what they are for.