camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From livensn <nickliv...@gmail.com>
Subject Camel onException()
Date Thu, 22 Sep 2011 11:44:56 GMT
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.

Mime
View raw message