0
有人可以帮我解决我遇到的问题。消息驱动通道适配器或JMS网关的错误通道
我有一个服务激活器类,对于一个Web服务网关和JMS适配器类很常见(意为我的请求来到这个班来自web服务网关通道和MQ适配器信道)。
而我在这个激活器中抛出异常。我能够处理webservices流程的这些异常,因为我已经在webservices流程的网关中定义了一个错误通道。
但是,我不能处理这些异常而消息从MQ来抛出。
这里是我的web服务网关:
<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适配器错误通道选择,我找不到任何东西。
我怎么能有从MQ进入一个JMS适配器的事件定义。一个错误通道,
在此先感谢。