简体   繁体   English

消息驱动通道适配器或JMS网关的错误通道

[英]Error channel for message-driven-channel-adapter or JMS gateway

Can someone please help me with an issue that I've. 有人可以帮我解决我遇到的问题吗?

I've a service activator class that's common for a webservice gateway and a JMS adapter class (meaning I've request coming to this class from both webservices gateway channel and from MQ adapter channel). 我有一个Web服务器网关和JMS适配器类通用的服务激活器类(这意味着我已经请求从Web服务网关通道和MQ适配器通道来此类)。

And I'm throwing exceptions in this activator. 我在这个激活器中抛出了异常。 I'm able to handle these exceptions for webservices flow as I've defined a error-channel in the gateway for webservices flow. 我已经为Web服务流处理了这些异常,因为我已经在Web服务流的网关中定义了一个错误通道。

However, I can't handle these exceptions thrown while message is coming from an MQ. 但是,当消息来自MQ时,我无法处理这些异常。

Here is my WebService gateway : 这是我的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>

And here is my MQ adapter channel : 这是我的MQ适配器通道:

 <int-jms:message-driven-channel-adapter container="avengersEventMessageListenerContainer" channel="avengersExecutionFlowRouterChannel" />

I've been looking for options for defining an error-channel for jms-adapter, I couldn't find anything. 我一直在寻找用于为jms-adapter定义错误通道的选项,但找不到任何东西。

How can I have a error channel defined for the events coming from MQ into an JMS adapter., 如何为从MQ到JMS适配器的事件定义错误通道,

Thanks in advance. 提前致谢。

What version are you using? 您使用什么版本?

The message-driven channel adapter has had an error-channel since 2.0, 6+ years ago. 从6年前的2.0开始,消息驱动的通道适配器出现了错误通道。

commit here . 在这里提交

Perhaps you are looking at the old version-less schema on the internet; 也许您正在查看Internet上的旧的无版本架构; see the * Important Note * at the top as to why that has to continue to reflect the 1.0 schema. 有关为什么必须继续反映1.0模式的信息,请参见顶部的*重要说明*

Spring resolves the version-less schema from the jar on the classpath; Spring从类路径上的jar解析无版本架构; it does not use the internet version. 它不使用互联网版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 保护JMS消息驱动通道适配器 - Securing JMS message-driven-channel-adapter spring集成消息驱动通道适配器 - spring integration message-driven-channel-adapter Java DSL中具有“选择器”创建功能的“ int-jms:message-driven-channel-adapter” - 'int-jms:message-driven-channel-adapter' with 'selector' creation in Java DSL Spring Integration Kafka消息驱动通道适配器接收消息 - Spring Integration Kafka message-driven-channel-adapter receive message RecordFilterStrategy with int-kafka:message-driven-channel-adapter - RecordFilterStrategy with int-kafka:message-driven-channel-adapter 在运行时启动jms消息驱动的通道适配器 - Starting jms message driven channel adapter at runtime Spring Integration message-driven-channel-adapter标签不遵守bean名称吗? - Spring Integration message-driven-channel-adapter tag not honoring bean name? Spring集成JMS消息“驱动通道适配器”以使用Java配置连接到IBM MQ - Spring integration JMS message Driven Channel Adapter to connect to IBM MQ using java configuration 如何基于配置动态创建多个jms消息驱动的通道适配器 - How to dynamically create multiple jms message driven channel adapter based on configuration 使用选择器的Spring Integration JMS消息驱动的通道适配器 - spring integration JMS message driven channel adaptor using selector
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM