You can use transactions - ack mode TRANSACTED

And then you need to setup a TX manager.

Chapter 9 in the Camel in Action book. (and find examples in the
source code for the book)
Or check the Transactional Client EIP pattern at Camel wiki.



On Wed, Apr 14, 2010 at 2:50 PM, lekkie <[email protected]> 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.
> --
> View this message in context: 
> http://old.nabble.com/JMS-Message-Acknowledgement---Persistence-in-Camel-tp28242166p28242166.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to