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適配器的事件定義。一個錯誤通道,
在此先感謝。