activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pclovec <>
Subject Re: Pausing producer with ACKS.
Date Tue, 09 Jun 2009 15:51:53 GMT

also you can look at this WLSession.NO_ACKNOWLEDGE

pclovec wrote:
> seems you can using Auto_ACKNOWlEDGE, and async send message.
> uprooter wrote:
>> Hello.
>> I'm new to ActiveMQ and I'm confused by the JMS Spec and the way it's
>> implemented bt AMQ.
>> I have both consumer and producer session created with 
>> I want to pause message flow from the producer until messages are
>> consumed by a consumer.
>> I don't want to use persistence or transaction as I don't care if the
>> broker crashes.
>> I do want to tie up JMS acknowledgments to errors in my application so
>> that if a consumer failed to process a message it wont acknowledge it and
>> the producer wont send another one.
>> CLIENT_ACKNOWLEDGMENTS allow me to cal message.acknowledge implicitly but
>> that wont stop the producer from sending another message.
>> Why does the producer continue if no ACKS has been received?
>> PS
>> This is how I understand CLIENT_ACKNOWLEDGMENTS
>> "Client mode: When a session uses client mode, the messages sent or
>> received from the session are not acknowledged automatically. The
>> application must acknowledge the message receipt. This mode gives the
>> application (rather than the JMS provider) complete control over message
>> acknowledgement, at the cost of increased code complexity."
>> Taken from 
>> this article 

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message