What acknowledgement mode are you using?  It's my understanding if you are
using Transactional or ClientAcknowledge you shouldn't have this problem.

With AutoAcknowledge messages are buffered on the consumer end and are lost
if not processed when the consumer shuts down.


lujan99 wrote:
> 
> After some test (and more test) my conclusion:
> 
> If you don't want to lose any messages I can't use any Listener method,
> Listener is ok except when my client shutdown.
> then I need to use some Receive with consumer.prefetchSize=0.
> 
> Is ok?
> 
> note: I test with java/groovy (jms-api) and don't have this issue.
> 
> someone is using NMS / C # in production?
> what if you have messages in the queue and stops the client?
> 
> update,  if I want to use:
>      connection.ExceptionListener += new ExceptionListener(OnException);
> to detect close conection (AMS restart) I can't use
> 'consumer.prefetchSize=0.'!
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NMS-C--and-consumer.prefetchSize-tp25689242p25706649.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to