You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2009/07/02 15:08:29 UTC

Camel DSL function : rollback ?

Hi,

What is the purpose of the following DSL function : rollback (inform
transaction manager that the transaction must be rollbacked, ...) ?

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

Re: Camel DSL function : rollback ?

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Jul 2, 2009 at 3:08 PM, Charles Moulliard<cm...@gmail.com> wrote:
> Hi,
>
> What is the purpose of the following DSL function : rollback (inform
> transaction manager that the transaction must be rollbacked, ...) ?
Yes instead of throwing an exception etc you can use rollback as it
also is more clear in the DSL that when you get here it will rollback
no matter what.

For instance used with a content based router - choice, when, otherwise

>
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus