【问题标题】:int:gateway equivalent Java DSLint:gateway 等效 Java DSL
【发布时间】:2018-08-13 16:48:20
【问题描述】:

具有错误通道和默认请求通道的 int:gateway 的 Java DSL 等效项是什么。 默认请求通道输入到转换器,该转换器将 JMS 消息发送到出站适配器并返回可侦听的未来。

【问题讨论】:

    标签: spring-integration spring-dsl


    【解决方案1】:

    类似这样的:

    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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-06
      • 2016-03-30
      • 2015-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-23
      相关资源
      最近更新 更多