user1047266
user1047266

Reputation: 31

Using the message-selector for fetch NON-GROUPED Messages

I need to use an MDB to fetch two kinds of messages of the same queue, one in Groups and the other NOT in groups. I can successfully pick up grouped messages using JMS_IBM_Last_Msg_In_Group=true, and I now need the second MDB to fetch NON GROUPED messages ONLY but cant seem to find a way to do this.

Any ideas?

Upvotes: 0

Views: 357

Answers (1)

Shashi
Shashi

Reputation: 15273

Messages in a group will have a GroupId set. So you can get only those messages whose GroupId is not set. More information in GroupId here.

Upvotes: 1

Related Questions