Re: Stop and resume message consuming

2013-08-12 Thread retok
JmsTest.zip http://activemq.2283324.n4.nabble.com/file/n4670280/JmsTest.zip I attached an example with a simple broker service, a producer and a consumer. The producer simply sends 30 messages and the consumer does not acknowledge every 3rd message. The effect is, that the first time, message

Re: Stop and resume message consuming

2013-08-07 Thread retok
Thanks for your reply. I have tried to set prefetch to 0. But this does not work for async sessions. I have to set it to a minimum of 1 because I would like to use the MessageListener concept and do not want to construct a sync session where I have to call receive() myself. Now, the effect of

Stop and resume message consuming

2013-08-06 Thread retok
We have a use case where there is a single queue that has multiple message consumers. It is important that the messages are consumed in first-in-first-out order and message consuming must stop when a message cannot be acknowledged (e.g. due to an application/database error) and must not be resumed