Top Banner
A first taste of integration with Apache Camel
13

A first taste of integration with Apache Camel

Aug 15, 2015

Download

Technology

nextbuild
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A first taste of integration with Apache Camel

A first taste of integration withApache Camel

Page 2: A first taste of integration with Apache Camel

Apache Camel

is a powerful Open Source Integration Framework

based on known Enterprise Integration Patterns

– Johnathan Anstey, co-author Camel In Action

Page 3: A first taste of integration with Apache Camel

Concise

Application

Messaging

Exchange

Language

Page 4: A first taste of integration with Apache Camel

Enterprise Integration Patterns Do you speak it?

http://enterpriseintegrationpatterns.com

Page 5: A first taste of integration with Apache Camel

More than 50 implemented EIPs

Page 6: A first taste of integration with Apache Camel

Example import orders from legacy system

Page 7: A first taste of integration with Apache Camel

Spring XML <route> <from uri=“ftp://admin@localhost/orders?move=done“/> <wireTap uri=“file:/orders/inbound“/> <unmarshal> <xstream> <aliases> <alias name="order" class=“com.demo.Order"/> </aliases> </xstream> </unmarshal> <choice> <when> <simple>${body.cost} &gt; 1000</simple> <to uri="jms:ordersToReview"/> </when> <otherwise> <to uri="jms:orders"/> </otherwise> </choice> </route>

Page 8: A first taste of integration with Apache Camel

Java DSL

XStream xStream = new XStream();xStream.alias("order", Order.class);from(“ftp://admin@localhost/orders?move=done“) .wireTap(“file:/orders/inbound“) .unmarshal(new XStreamDataFormat(xStream)) .choice() .when(simple("${body.cost} > 1000")) .to("jms:ordersToReview") .otherwise() .to("jms:orders");

Page 9: A first taste of integration with Apache Camel

http://camel.apache.org/components.html

More than 200 components

Page 10: A first taste of integration with Apache Camel

http://camel.apache.org/data-format.html

More than 30 built-in data formats

XMLJSON

Zip

SoapXmlJson

CSV

BeanIOEDI

Protobuf

GZip

Crypto

PGP

Base64RSS

iCALBarcode

Page 11: A first taste of integration with Apache Camel

http://camel.apache.org/languages.html

Expression languages

Page 12: A first taste of integration with Apache Camel

DEMOhttps://github.com/niels-s/camel-demo

Page 13: A first taste of integration with Apache Camel

Questions?

@[email protected]