activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Alateras <>
Subject single session multiple consumers and selectors
Date Thu, 05 Jul 2007 23:45:44 GMT
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

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?


View raw message