9. Specific tool
• Apache Camel
• Spring Integration
• Enterprise Service Bus (Mule ESB)
Read article
10. Apache Camel. Pros.
Pros
• Lighweight
• A lot components
• Support many Data Formats
• Good community
• DSL(XML, Java, Scala, Groovy)
• Spring integration
17. Components example
To poll, every 5 sec., all statuses on your home timeline
and send to gmail:
Java DSL
from("twitter://timeline/home?type=polling&delay=5&consumerKey=[s]&co
nsumerSecret=[s]&accessToken=[s]&accessTokenSecret=[s]").to("gmail://a
ccount1@gmail.com")
XML DSL
<route>
<from
uri="twitter://timeline/home?type=polling&delay=5&consumerKey=[s]&c
onsumerSecret=[s]&accessToken=[s]&accessTokenSecret=[s]"/>
<to uri=" gmail://account1@gmail.com "/>
</route>
18. Data Formats
• Standard java serialization
• Object marshalling (json, protobuf)
• Object xml marshalling (xstream, jaxb, jixb, castor, xmlbeans
• Object/XML/Webservice marshalling (SOAP)
• Direct JSON / XML marshalling
• Flat data structure marshalling (BeanIO, bindy, csv, edi, flatpack
dataformat)
• Domain specific marshalling (HL7)
• Compression (gzip, zip)
• Security (Crypto, PGP, XMLsecurity)
• Misc (custom dataformat, rss, syslog, tidymarkup)
• Dozer Type Conversion