I have a queue,
I have a producer that sends messages to it,
And I have a consumer that synchronously reads messages (by
MessageConsumer.receive()) and acknowledges it if message is correct (my own
validation), then going to listen next messages. If it is not correct, then
it doesn't call aknowledge.

Now my actions:
1. Sending 1 correct message.
2. Consumer successfully reads 1 message and 1 times acknowledges.
3. Sending 1 incorrect messages.
4. Consumer doesn't aknowledge them and continuing listen for other message.
(ActiveMQ keeps incorrect message).
And here problem:
5. Sending 1 correct message.
6. Consumer successfully reads 1 message and 1 times acknowledges.
7. Incorrect message DISSAPEARED from ActiveMQ!

WHY? =)

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Subscribe-%2B-Client-aknowledge-problem-tp23020938p23020938.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to