【发布时间】:2017-03-01 23:15:09
【问题描述】:
有人可以帮我解决我遇到的问题吗?
我有一个服务激活器类,它对于 web 服务网关和 JMS 适配器类很常见(这意味着我已经从 web 服务网关通道和 MQ 适配器通道请求进入这个类)。
我在这个激活器中抛出异常。由于我在网关中为 Web 服务流定义了一个错误通道,因此我能够处理这些 Web 服务流异常。
但是,当消息来自 MQ 时,我无法处理引发的这些异常。
这是我的 WebService 网关:
<int:gateway id="avengersGenericServiceRestGateway" service-interface="com.foo.AvengersAnalysisProcessingV001" error-channel="avengersWsErrorChannel">
<int:method name="hulcTransactionRisk" request-channel="hulcTransactionRiskAuthChannel" reply-channel="avengersGenericServiceOutputChannel" reply-timeout="1000" />
<int:method name="hulcPartyRisk" request-channel="hulcPartyRiskAuthChannel" reply-channel="avengersGenericServiceOutputChannel" reply-timeout="1000" />
<int:method name="callBlackWidow" request-channel="callBlackWidowAuthChannel" reply-channel="avengersGenericServiceOutputChannel" reply-timeout="1000" />
</int:gateway>
这是我的 MQ 适配器通道:
<int-jms:message-driven-channel-adapter container="avengersEventMessageListenerContainer" channel="avengersExecutionFlowRouterChannel" />
我一直在寻找为 jms-adapter 定义错误通道的选项,但找不到任何东西。
如何为来自 MQ 到 JMS 适配器的事件定义错误通道。,
提前致谢。
【问题讨论】:
标签: java spring web-services jms spring-jms