Adam Chase wrote:
Yes.

consumer:

if (queue.pop() == false && lastReceived > timeout)
{
     delete(queue);
}

But between the pop and the delete, a message is added to the queue.
This is possible, right?

Adam

You can solve the above issue using an alternate queue or, you can unbind the queue, then make
sure it is empty, then delete.

If an alternate is set then un-route- able messages can be sent to the alternate or a different queue can
be explicitly bound

regards
Carl.

Reply via email to