2017-03-01 124 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的版本少的模式;它不使用互聯網版本。

相關問題