On 7/6/07, Jim Alateras <[EMAIL PROTECTED]> 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?
--
James
-------
http://macstrac.blogspot.com/

Reply via email to