Hi

See the FAQ :)
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

On Thu, Sep 22, 2011 at 1:44 PM, livensn <[email protected]> wrote:
> Hi all,
>
> In our project, we need to validate a csv file, we do this in a camel route.
>
> But if something is wrong with the csv, we throw an exception.
> Is it possible to stop the route right after this exception is thrown?
>
> We've tried onException(RuntimeException.class).stop()
> We've tried onException(RuntimeException.class).maxmimumRedeliveries(0)
>
> Any help is appreciated.
>
> Thanks
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-onException-tp4829847p4829847.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to