First a summary of the problem: I create a QueueReceiver by passing in a queue and message selector. Then set a MessageListener. The MessageListener receives the correct messages. That is all fine. Then after some time, I want to change the type of messages received. I create a new QueueReceiver the same way as before, with a new message selector, but pass in the same MessageListener. That all seems to work. However (and here is the problem) I received messages for the prior selector.
I set up the TRACE as specified at the top of this forum, but I am not sure what I should be looking for to find the source of the problem.
Thanks for any help you can give.
Did you close the previous receiver? Sounds to me like the previous receiver is still active.