1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Java DSL for Spring Integration 1.2 Milestone 2 下载

本帖由 漂亮的石头2016-09-16 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,979
    赞:
    47
    Java DSL for Spring Integration 1.2 Milestone 2 发布了,目前迭代更新的一些亮点:


    • JPA support

    @Autowired
    private EntityManagerFactory entityManagerFactory;
    @bean
    public IntegrationFlow pollingAdapterFlow() {
    return IntegrationFlows
    .from(Jpa.inboundAdapter(this.entityManagerFactory)
    .entityClass(StudentDomain.class)
    .maxResults(1)
    .expectSingleResult(true),
    e -> e.poller(p -> p.trigger(new OnlyOnceTrigger())))
    .channel(c -> c.queue("pollingResults"))
    .get();
    }
    @bean
    public IntegrationFlow updatingGatewayFlow() {
    return f -> f
    .handle(Jpa.updatingGateway(this.entityManagerFactory),
    e -> e.transactional(true))
    .channel(c -> c.queue("persistResults"));
    }
    @bean
    public IntegrationFlow retrievingGatewayFlow() {
    return f -> f
    .handle(Jpa.retrievingGateway(this.entityManagerFactory)
    .jpaQuery("from Student s where s.id = :id")
    .expectSingleResult(true)
    .parameterExpression("id", "payload"))
    .channel(c -> c.queue("retrieveResults"));
    }

    • Mid-flow transaction support


    • Scatter-Gather support


    • More routers improvements

    点击查看提交记录以了解更多

    发行说明:


    下载地址:

    Java DSL for Spring Integration 1.2 Milestone 2下载地址
     
正在加载...