je les suivantes chain
au printemps:Spring exception-type routeur dans une chaîne
<int:chain input-channel="errorRecoveryChannel">
<int:transformer ref="exceptionLogger" method="logError"/>
<int:transformer ref="errorHandlerTransformer" method="handleError"/>
<int:header-value-router header-name="onErrorDestinationQueueChannel"
default-output-channel="reprocessOutChannel">
<int:mapping value="dlqMessageOut" channel="dlqMessageOut"/>
</int:header-value-router>
</int:chain>
et moi avons une classe qui renvoie une exception DemoClientNotAssociatedWithLiveClientDropMessageError
personnalisée.
Est-ce que quelque chose comme ça va fonctionner?
<int:chain input-channel="errorRecoveryChannel">
<int:transformer ref="exceptionLogger" method="logError"/>
<int:exception-type-router>
<int:mapping exception-type="com.iggroup.mis.gateway.errorhandling.DemoClientNotAssociatedWithLiveClientDropMessageError"
channel="nullChannel"/>
</int:exception-type-router>
<int:transformer ref="errorHandlerTransformer" method="handleError"/>
<int:header-value-router header-name="onErrorDestinationQueueChannel"
default-output-channel="reprocessOutChannel">
<int:mapping value="dlqMessageOut" channel="dlqMessageOut"/>
</int:header-value-router>
</int:chain>
Ou dois-je ajouter le exception-type-router
en dehors du chain
?