servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iocanel <canel...@upstreamsystems.com>
Subject Re: Message Acknowledgement & Persistence in Camel Application
Date Wed, 14 Apr 2010 10:29:50 GMT


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.


Mime
View raw message