6 Replies Latest reply on Aug 17, 2009 10:02 AM by Yong Hao Gao

    Grouping and ordering messages on queue

    Damian Sinczak Newbie


      I didn't read whole JMS specification, so please don't shout if this question is stupid.

      Let’s say I have 9 messages that I want to send on queue. And those messages can belong to three different groups: red group, green group and blue group.

      RED_GROUP = [message1, message2, message3]
      GREEN_GROUP = [message4, message5, message6]
      BLUE_GROUP = [message7, message8, message9]

      What I want to achieve is to assure that only one message from group is picked up by message driven bean and other messages (from the same group) wait for previous one to process. I don’t care about ordering groups of messages I only care for messages in groups.