camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From livensn <>
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.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message