activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nix.huang" <javacoder...@hotmail.com>
Subject Re: Message Header Update AMQ during Retry
Date Thu, 09 Apr 2015 00:45:48 GMT
the default ACKNOWLEDGE mode is AUTO_ACKNOWLEDGE.when receive() returns the
message acknowledged,
you can use CLIENT_ACKNOWLEDGE mode alternatively.
for example:
session = connection.createSession(true, Session.CLIENT_ACKNOWLEDGE);
....
Message msg = ...
message.acknowledge();



--
View this message in context: http://activemq.2283324.n4.nabble.com/Message-Header-Update-AMQ-during-Retry-tp4694533p4694580.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message