【发布时间】:2016-11-21 12:14:05
【问题描述】:
我正在从队列中提取数据,然后使用 int-xml:validating-filter 验证输入负载。我已设置 throw-exception-on-rejection="true" 以便引发异常。
我需要获取异常消息(验证错误)以及输入负载。您能否建议可用于捕获此数据的选项?
<int-jms:message-driven-channel-adapter id="jmsIn"
destination="requestQueue" channel="orderChannel"/>
<int-xml:validating-filter id="validatingFilter"
input-channel="orderChannel"
output-channel="validOutputChannel"
discard-channel="errOutputChannel"
schema-type="xml-schema"
throw-exception-on-rejection="true"
schema-location="OrderProcessing/order.xsd"/>
【问题讨论】:
标签: spring exception error-handling spring-integration