apache camel for devclub.eu
DESCRIPTION
apache camel, devclub.euTRANSCRIPT
![Page 1: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/1.jpg)
Apache CamelАнтон Архипов
http://arhipov.blogspot.comhttp://anton-arhipov.livejournal.com
![Page 2: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/2.jpg)
![Page 3: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/3.jpg)
SOA: Spaghetti-Oriented Architecture
![Page 4: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/4.jpg)
http://camel.apache.org
What is Apache Camel?
![Page 5: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/5.jpg)
A B
from(“a”).to(“b”)
![Page 6: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/6.jpg)
from(“a”).choice().when().
method(“controlBean”,“isOK”).
to(“x”).end().
pipeline(“b”, “c”, “d”);
A B C D
control
X
![Page 7: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/7.jpg)
Components
![Page 8: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/8.jpg)
Endpoint URI
<component-name>:<component-spec>[?params]
from(“file:/tmp?consumer.delay=1000”)
from(“bean:myBean?methodName=getOrders”)
from(“quickfix-server:server.cfg?log=#loggingFactoryBean”)
![Page 9: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/9.jpg)
Pattern Examples
![Page 10: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/10.jpg)
Content Based Router
![Page 11: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/11.jpg)
Content Based Router
![Page 12: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/12.jpg)
Message Filter
![Page 13: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/13.jpg)
Splitter
![Page 14: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/14.jpg)
Translator
![Page 15: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/15.jpg)
Aggregator
![Page 16: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/16.jpg)
Resequencer
reliable delivery!
![Page 17: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/17.jpg)
Routing Slip
![Page 18: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/18.jpg)
![Page 19: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/19.jpg)
Quick Start
java –cp … org.apache.camel.spring.Main
![Page 20: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/20.jpg)
![Page 21: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/21.jpg)
RandomFeatures
![Page 22: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/22.jpg)
Error Handling
![Page 23: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/23.jpg)
try … catch … finally
![Page 24: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/24.jpg)
Message-Driven POJO
![Page 25: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/25.jpg)
Camel & ActiveMQ
${ACTIVEMQ_HOME}/conf/activemq.xml
<camelContext id=“camel”
xmlns=“http://camel.apache.org/schema/spring”>
<route>
<!-- you can add routes here -->
</route>
</camelContext>
![Page 26: Apache Camel for Devclub.eu](https://reader033.vdocuments.us/reader033/viewer/2022061108/54501d89af7959b77a8b97a2/html5/thumbnails/26.jpg)
http://camel.apache.org