`
jnn
  • 浏览: 282951 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Spring Integration component of Camel

阅读更多

最近我在Camel中做了一个针对Spring Integration 的component,这样大家可以在Camel中很轻松地与Spring Integration中的模块进行交互。

 有关Spring Integration Component 的使用大家可以参考Camel中的wiki

也许大家会问,Spring IntegrationCamel 都实现了Enteripse Integration Pattern 那两者有什么区别吗?

 

下面是 Spring Integration 的官方介绍 

It provides an extension of the Spring programming model to support the well-known Enterprise Integration Patterns while building on the Spring Framework's existing support for enterprise integration. It enables simple messaging within Spring-based applications and integrates with external systems via simple adapters. Those adapters provide a higher-level of abstraction over Spring's support for remoting, messaging, and scheduling. Spring Integration's primary goal is to provide a simple model for building enterprise integration solutions while maintaining the separation of concerns that is essential for producing maintainable, testable code.

从上面我们可以看出Spring Integration所提供的EIP实现时构建在Spring的编程模型上的;Camel也提供了Spring的支持,你可以通过Spring配置文件来描述复杂的EIP模型,从这个方面来说两者打成平手。

Spring  Integration 是通过adapter来接入外部消息系统的,这和Camel的Component很类似。由于Spring Integration是最近才推出了1.0.0M3, 其所支持的接入的外部系统还很少。从这个角度来说的话,在Camel中实现Spring Integration Component就有很大的必要了,一个是在Spring Integration 模块中可以复用Camel的component,另一个方面来说Camel可以借助Spring Integration中对SpringBean的支持实现对Spring 编成模式的无缝支持。

有兴趣的朋友可以使用svn 从下面的地址下载Camel最新的代码,体验一下。

 http://svn.apache.org/repos/asf/activemq/camel/trunk/

 

分享到:
评论
2 楼 jnn 2011-12-12  
具体你可以参考camel-spring-integration的单元测试[1],其中inbound 和outbound的功能都有。还有就是camel-spring-integration的wiki[2]

[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring-integration
[2]http://camel.apache.org/springintegration.html
1 楼 devilmaysmile 2011-12-12  
hello willem兄,我们在现在的项目中尝试有使用camel的想法,但是想让camel和spring integration集成使用,但是在官方网站上一直为找到一个完整可运行的example,在自己尝试的时候遇到一点小问题,不知您那里有没有可运行的范例可供参考。
如有空回复,不慎荣幸。

相关推荐

Global site tag (gtag.js) - Google Analytics