I have a single session which uses two consumers all within a single thread. This is how i use them

1. consumerA simply does a receiveNoWait on the queue and pops the first
message.

2. We then use the firstMessage to construct a new consumer with a specific selector, named consumerB

3. consumerB will retrieve messages of the same queue until it receives
a message with an end-of-stream indicator.

4. Commit the session, which owns consumerA and consumerB

It seems that the second selector never consumers any messages of the queue even though there are messages which satisfy the selector.

any ideas?

cheers
</jima>

Reply via email to