Apache Camel

个人理解

Camel相当于轻量级的ESB

from 定义源消息触发后续动作

process 触发后camel做的处理,比如分发,正则匹配下的分发

to 消息到哪里去

 

开启多个微服务,发送消息到camel,camel接收后,发送到下一个微服务

微服务应该是采用轮询的方式监听消息或数据,对于非高并发的场景,是可以接受的。

 

http://camel.apache.org/running-examples.html

Running Examples

This section walks you through running the examples which are shipped with a binary distribution.

Before you start

First you need to Download a binary distribution.

To run the demos with maven, you need to download and install Apache Maven.

To test your Maven install, change directory to the examples directory and type:

mvn -v

You should see something like:

camel-rider:/tmp/camel/examples$ mvn -v
Maven version: 3.0 . 3

Running the examples in Maven

To run the first example using Maven, change directory to the example you want to run then issue the following command:

mvn exec:java

To run the other Spring-based examples such as the Spring Example, use the Camel Maven Plugin. For example:

cd camel-example-spring
mvn camel:run

Running the examples in your IDE

In each example you can run the main() from your IDE.

To create an IDEA project, run

mvn idea:idea

If you are an Eclipse user, run

mvn eclipse:eclipse

You should now be able to open the project(s) in your IDE and run any main() method you wish.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值