【发布时间】:2017-06-21 03:36:00
【问题描述】:
我计划在 Spring 集成中使用控制总线功能来管理入站端点,即入站文件适配器、消息驱动适配器等。
为了使控制总线工作,适配器 ID 是强制性的。我不想对 id 进行硬编码。有没有办法列出所有入站适配器并获取 Id ?
【问题讨论】:
-
如何在 Spring Integration DSL 中使用
org.springframework.integration.annotation.Role。我尝试在 IntegrationFlow bean 上使用 @Role 注释,但是当我查询roleController.getRoles()并返回空列表时。 @Role 与 @ServiceActiviator 和其他 Spring Integration java 配置一起使用,但如何将它与 Spring Integration DSL 一起使用?