Hi Arun, The camel jms component (developed top of Spring JMS / DMLC) is configured by default to AUTOMATICALLY acknowledge the messages receive from a queue. This behaviour can be overrided using this property for the endpoint acknowledgementModeName (SESSION_TRANSACTED, CLIENT_ACKNOWLEDGE, AUTO_ACKNOWLEDGE,DUPS_OK_ACKNOWLEDGE). To avoid to loose data, a transaction (= SESSION_TRANSACTED) will be required using a Transactional Client (http://camel.apache.org/transactional-client.html) or a Transactional Route (for more complex cases - http://camel.apache.org/transactionerrorhandler.html).
On Mon, Nov 25, 2013 at 6:05 AM, Arun Prabhath <[email protected]>wrote: > Hi All, > > I am using Apache camel for routing between ActiveMQ and http endpoints. > The route is defined in such a way that take data from the ActiveMQ and > post these data to a tomcat which is a http endpoint. > > Can we acknowledge the queue from the camel only after the successful > routing? If this is possible, then I can make this route without any loss > of data in the queue. > > Please provide any solution. > > Regards, > Arun Prabhath > > > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
