spring-integration - 出站组件的消息历史记录
问题描述
我应该如何跟踪 int-http:outbound-gateway 和 int-jms:outbound-channel-adapter?下面是java类对应的组件的映射。请核实。我需要在以下 bean 上调用 setShouldTrack(true) 方法,以便我可以在消息历史记录中获取这些组件详细信息(名称、类型、时间戳)
int-ws:outbound-gateway org.springframework.integration.ws.MarshallingWebServiceOutboundGateway
int-http:inbound-gateway org.springframework.integration.http.inbound.HttpRequestHandlingMessagingGateway
int-http:outbound-gateway org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler
int-jms:message-driven-channel-adapter org.springframework.integration.jms.JmsSendingMessageHandler
int-jms:outbound-channel-adapter ??
目前我能够跟踪 int-http:inbound-gateway 和 int-jms:message-driven-channel-adapter。
解决方案
你的问题不清楚。框架中的所有MessageHandler
实现都是 的扩展,AbstractMessageHandler
并且有一个setShouldTrack()
方法。
如果您想手动调用它,您可以通过他们的id
. 这是包装消费者端点和.handler
后缀的组合ID:https ://docs.spring.io/spring-integration/docs/current/reference/html/overview.html#endpoint-bean-names
另一方面,如果<message-history>
允许我们为用逗号分隔的组件名称配置模式,则不清楚为什么要手动执行此操作:https ://docs.spring.io/spring-integration/docs/current/reference/ html/system-management-chapter.html#message-history-config
推荐阅读
- flutter - 如何在appbar底部定位线性进度条?
- javascript - 使用 Ramda,你如何组合二进制函数?
- puppeteer-sharp - 是否可以使用 puppeteeter sharp 将部分网页转换为 PDF?
- swift - 用于时间序列分析的 Core ML
- vb.net - 3d坐标系中两点之间的间距
- python - 使用 psycopg2 复制到带有 ARRAY INT 列的表
- c++ - 声明和定义之间的冲突是否会导致未定义的行为?
- javascript - 更新 Cypress 3.1.2 版本后无法打开 Cypress 应用程序
- reactjs - 电子错误启动应用程序无法找到电子应用程序
- oracle - 使用 count(*) 在 SQL 过程中获取多于一行