【发布时间】:2018-08-13 16:48:20
【问题描述】:
具有错误通道和默认请求通道的 int:gateway 的 Java DSL 等效项是什么。 默认请求通道输入到转换器,该转换器将 JMS 消息发送到出站适配器并返回可侦听的未来。
【问题讨论】:
标签: spring-integration spring-dsl
具有错误通道和默认请求通道的 int:gateway 的 Java DSL 等效项是什么。 默认请求通道输入到转换器,该转换器将 JMS 消息发送到出站适配器并返回可侦听的未来。
【问题讨论】:
标签: spring-integration spring-dsl
类似这样的:
return IntegrationFlows.from(Gate.class)
/**
* Populate the {@link MessageChannel} to the new {@link IntegrationFlowBuilder}
* chain, which becomes as a {@code requestChannel} for the Messaging Gateway(s) built
* on the provided service interface.
* <p>A gateway proxy bean for provided service interface is registered under a name
* from the
* {@link org.springframework.integration.annotation.MessagingGateway#name()} if present
* or from the {@link IntegrationFlow} bean name plus {@code .gateway} suffix.
* @param serviceInterface the service interface class with an optional
* {@link org.springframework.integration.annotation.MessagingGateway} annotation.
* @return new {@link IntegrationFlowBuilder}.
*/
public static IntegrationFlowBuilder from(Class<?> serviceInterface) {
https://docs.spring.io/spring-integration/docs/current/reference/html/java-dsl.html#java-dsl-gateway
【讨论】: