jeudi 9 avril 2015

How to stop processing in camel when exception is thrown

I use camel version 2.10.0 and I want to stop processing when the exception is thrown.



<onException>

<exception>java.lang.IllegalArgumentException</exception>

<handled>
<constant>true</constant>
</handled>

<process ref="responseHandler" />

<log
logName="route.Integration"
loggingLevel="ERROR"
message="Format de fichier invalide." />

<bean ref="traitementBean" method="registerEndExecution" />

</onException>

Aucun commentaire:

Enregistrer un commentaire