Post on 29-Oct-2014
description
Apache CamelАнтон Архипов
http://arhipov.blogspot.comhttp://anton-arhipov.livejournal.com
SOA: Spaghetti-Oriented Architecture
http://camel.apache.org
What is Apache Camel?
A B
from(“a”).to(“b”)
from(“a”).choice().when().
method(“controlBean”,“isOK”).
to(“x”).end().
pipeline(“b”, “c”, “d”);
A B C D
control
X
Components
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”)
Pattern Examples
Content Based Router
Content Based Router
Message Filter
Splitter
Translator
Aggregator
Resequencer
reliable delivery!
Routing Slip
Quick Start
java –cp … org.apache.camel.spring.Main
RandomFeatures
Error Handling
try … catch … finally
Message-Driven POJO
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>
http://camel.apache.org