Gary,thanks for your quick reply.I have read source code again,session will dispatch message to consumer with the method dispatch(Line1216). beforeMessageIsConsumed will be invoked before messages are consumed and afterMessageIsConsumed will be invoked after messages are consumed. But no ackLater is not involved because session is transacted and acknowledgementMode is auto.
At 2011-09-08 01:14:54,"Gary Tully" <[email protected]> wrote: >there is a synchronization registered with the transaction and the ack >is sent in a beforeEnd callback when the transaction commits. >see: org.apache.activemq.ActiveMQMessageConsumer#ackLater > >2011/9/7 SuoNayi <[email protected]>: >> Hi all,how does message acknowledge reply to broker when session is >> transacted? >> >> I have read the source code but found nothing to do if session is transacted >> after messages are consumed. >> >> Thanks. > > > >-- >http://fusesource.com >http://blog.garytully.com
