2017-03-01 127 views
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适配器的事件定义。一个错误通道,

在此先感谢。

回答

0

你使用的是什么版本?

自2.0消息驱动通道适配器已发生错误通道,6+年前。

commit here

也许你正在寻找在互联网上的旧版本少架构;请参阅顶部的* Important Note *以了解为什么它必须继续反映1.0模式。

Spring解决了从classpath中的jar的版本少的模式;它不使用互联网版本。

相关问题