抢先一步
VMware 提供培训和认证,以加速您的进步。
了解更多我们非常高兴地宣布 Spring Integration 3.0.0.RC1 现在可以在 Spring Milestone Repo 中找到
此版本默认使用 Spring Framework 3.2.5,但也兼容 Spring 3.1.x 和 4.0.x。
发布说明,显示自里程碑 3 以来的更改,可在此处获得。
##首先,关于 Spring Framework 4 支持的说明
Spring Framework 4.0 有一个新的
spring-messaging
模块,其中包含 Spring Integration 的一些关键抽象。
Spring Integration 3 虽然与 Spring Framework 4 兼容,但不依赖于它,也不使用这些类,因此它也可以与 Spring Framework 3.2 和 3.1 一起使用。
我们计划在 2014 年初发布 Spring Integration 4,它将完全兼容(并且**需要**)Spring Framework 4,并利用其
spring-messaging
模块作为基础。在 Spring Framework 4 发布后不久,将提供一个里程碑版本。
##3.0 中的新功能
有关 3.0 版本的完整“新功能”可以在参考文档中找到,但这里有一些亮点...
###新的和修改的端点
<int-syslog:inbound-channel-adapter id="foobar" channel="foo" port="1514" />
<jmx:tree-polling-channel-adapter id="jmxtree"
channel="mbeanData"
auto-startup="false"
query-name="java.lang:type=Runtime"
query-expression="*:type=*">
<si:poller max-messages-per-poll="1" fixed-rate="5000"/>
</jmx:tree-polling-channel-adapter>
<int-file:tail-inbound-channel-adapter id="tailer"
channel="lines"
file="/tmp/baz" />
<int:gateway id="myGateway"
service-interface="foo.Bar"
default-request-channel="requestChannel">
<int:default-header name="calledMethod"
expression="#gatewayMethod.name"/>
</int:gateway>
mv
(重命名)、put
和 mput
命令;ls
、mget
和 mput
现在支持递归 - 允许传输目录树。<chain/>
中的元素现在可以具有 id,从而可以将其作为 bean 和/或 _MBean_s 提供<int-ip:tcp-connection-event-inbound-channel-adapter channel="events" />
###常规改进
No output-channel or replyChannel header available
_ChannelResolutionException_s。<int:spel-function id="foo"
class="foo.MyUtils" method="evaluate(java.lang.String, java.lang.Object)"/>
<int:transformer input-channel="in" output-channel="out"
expression="#foo(headers.bar, payload)" />
提供了两个内置函数:#jsonPath 和 #xpath。
还可以将自定义 _PropertyAccessor_s 添加到评估上下文中。
###结论
请参阅项目页面,以获取更多信息以及下载、文档等链接。
我们将很快发布,因此我们将感谢用户试用此候选版本。
迁移指南中详细介绍了一些迁移注意事项。
谢谢。