lekkie wrote:
> 
> I have this scenario where I 'd like to keep a message in the queue until
> the flow in my route has returned.
> 
> See explanation below:
> 
> <route>
>       <from uri="jms:${queue}"/>      
>       <to uri="nmr:Webservice"/>
> </route>
> 
> I'd like to finish processing <to uri="nmr:Webservice"/> - which means the
> message is successfully sent to nmr:Webservice - before an ack is sent to
> my message broker (jms:${queue}).
> 
> What acknowledgement mode will ensure an ack is only sent after camel
> application returns from the <to uri="nmr:Webservice"/> call?
> 
> In the case of an exception, I believe an ack will not be sent to the
> broker. Is my assumption correct?
> 
> kr.
> 

AUTO_ACKNOWLEDGE which is the default and TRANSACTED will work for you.

-----
Ioannis Canellos
-- 
View this message in context: 
http://old.nabble.com/Message-Acknowledgement---Persistence-in-Camel-Application-tp28240625p28240893.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to