activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: single session multiple consumers and selectors
Date Fri, 06 Jul 2007 05:49:08 GMT
On 7/6/07, Jim Alateras <> wrote:
> 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?

Nothing off the top of my head, no. I wonder could you create a little
JUnit test case for your scenario so we can try see whats going on?

View raw message