最近我在Camel中做了一个针对Spring Integration 的component,这样大家可以在Camel中很轻松地与Spring Integration中的模块进行交互。
有关Spring Integration Component 的使用大家可以参考Camel中的wiki
。
也许大家会问,Spring Integration
和Camel
都实现了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/
分享到:
相关推荐
使用 Apache Camel 和 Spring 集成的企业集成模式。 用于使用框架演示 EIP 的域是自行车商店。 自行车商店导入 CSV 交货单和订单。 ##Import of delivery notes 每条交货单记录都被转换成一个StockItem 并发送到eip....
Camel empowers you to define routing and mediation rules in a variety of domain-specific languages, including a Java-based Fluent API, Spring or Blueprint XML Configuration files, and a Scala DSL....
Apache Camel is a Java framework that lets you implement the standard enterprise integration patterns in a few lines of code. With a concise but sophisticated DSL you snap integration logic into your ...
Spring启动骆驼XML快速入门 本示例演示了如何通过Spring XML配置文件在Spring Boot中配置骆驼路线。 该应用程序利用Spring 批注通过类路径上的src / main / resources / spring / camel-context.xml文件加载Camel ...
droolsjbpm-integration, Drools和jBPM与 seam,spring,camel的集成. . 开发口水和 jBPM如果你想要构建或者贡献到一个项目,则阅读这里文档 。 我们将通过正确设置开发环境来节省你和我们大量的时间。 它解决了所有...
该应用程序利用Spring 批注通过类路径上的src / main / resources / spring / camel-context.xml文件加载Camel Context定义。 重要的 该快速入门可以在2种模式下运行:在您的计算机和Kubernetes / OpenShift群集上...
主要介绍了Spring boot项目集成Camel FTP的方法示例,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
使用ConfigMap和Secrets的Spring-Boot Camel快速入门本快速入门演示了如何使用Kubernetes ConfigMap和Secrets配置Spring-Boot应用程序。 路由会生成示例消息,这些示例消息将传递到通过src/main/resources/...
This book is intended for all Camel users who want to get the best out of Camel, and who want to implement the most efficient integration logic using best practices. In Detail This book will provide ...
使用REST / SQL快速入门的Spring-Boot Camel快速入门 此示例演示如何通过JDBC和Camel的REST DSL一起使用SQL来公开RESTful API。 本示例依赖于进行构建配置,并使用。 该应用程序利用Spring 批注通过类路径上的src ...
camel集成spring的各种案例,如:jetty、file、activemq、ftp、http、log、并行、分支、发送邮件、接收邮件、seda队列、timer定时器、netty4、quartz2定时器、zookeeper操作,只是简单案例,方便学习, 适合入门和...
VRaptor 空白项目带有 VRaptor、Spring 和 Hibernate/JPA 应用程序基础架构的 Java Web 项目。设置项目具有使用VRaptor、Spring 和 Hibernate (JPA2)的 Java Web 应用程序的基础架构。 项目中使用的主要技术如下: ...
spring-boot-docker-camel 演示如何在 Spring Boot 中部署 Camel 并使用各种集成技术与 Docker 集成 项目概况 该项目演示了 Apache Camel 在 Spring Boot 和 Docker 中的集成功能。 Camel 上下文通过 Camel Spring ...
Camel in Action is a Camel tutorial full of small examples showing how to work with the integration patterns. It starts with core concepts like sending, receiving, routing, and transforming data. It ...
弹簧靴骆驼快速入门本示例演示了如何基于将Apache Camel与Spring Boot结合使用。 快速入门使用Spring Boot配置一个小的应用程序,该应用程序包含一个骆驼路由,该路由每5秒触发一次消息,并将消息路由到日志。 该...
SPRING-BOOT-CAMEL-MONGO-JDK8介绍示例 Spring Boot 应用程序,它集成了 Java 生态系统中一些最常用的顶级框架。 该示例还用于试验所有这些框架,以创建轻量级企业服务,该服务独立于外部容器运行,但仍提供企业就绪...
Spring-Boot,Camel和EnMasse快速入门本快速入门演示了如何使用Kubernetes或OpenShift将Spring-Boot应用程序连接到EnMasse(MaaS)并在两条骆驼路线之间使用JMS消息传递。 在此示例中,我们将使用两个容器,一个容器...
Spring-Boot-Camel-ActiveMQ 示例项目:Spring Boot + Camel + ActiveMQ
camunda 7.9.0和apache骆驼 该项目用于测试apache骆驼和camunda 7.9.0是否一起使用。 Tl;博士 看来Apache Camel,但他们正在... Camunda 7.9.0和Spring Boot似乎需要Spring Boot 2。 中存在一个问题,我尝试跟踪进度。