jeudi 2 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