设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Java DSL for Spring Integration 1.2 Milestone 2

2016-9-17 19:32| 发布者: joejoe0332| 查看: 955| 评论: 0|原作者: oschina|来自: oschina

摘要: Java DSL for Spring Integration 1.2 Milestone 2 发布了,用于集成Spring的Java DSL。(至于什么是DSL,这个翻译成中文称作领域特定语言,具体的话请各位自行使用搜索引擎查找吧,我也爱莫能助了。 ...

Java DSL for Spring Integration 1.2 Milestone 2 发布了,用于集成Spring的Java DSL。(至于什么是DSL,这个翻译成中文称作领域特定语言,具体的话请各位自行使用搜索引擎查找吧,我也爱莫能助了。)

目前迭代更新的一些亮点:

  • JPA support

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@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

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

发行说明:

下载地址:


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部