具有错误通道和默认请求通道的 int:gateway 的 Java DSL 等效项是什么。默认请求通道输入到转换器,该转换器将 JMS 消息发送到出站适配器并返回可侦听的未来。
问问题
114 次
1 回答
2
像这样的东西:
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
于 2018-08-13T17:34:32.667 回答