Follow Us on Twitter

Devoxx talk about Apache Camel – Claus Ibsen

by Jos Nieuwenhuis on November 19, 2010 · 0 comments

Apache Camel is an open source integration framework that implemented the patterns which are mentioned in the book Enterprise Integration Patterns. Some many people say this book is the bible in the integration space. According to Claus Ibsen the Camel framework lets you focus on the business problem. Source code can be written in such a way that everybody (‘even your boss’) can read and understand it. Example code:

from("queue:a").filter(header("foo").isEqualTo("bar")).to("queue:b");
from("queue:c").choice()
    .when(header("foo").isEqualTo("bar")).to("queue:d")
    .when(header("foo").isEqualTo("cheese")).to("queue:e")
    .otherwise().to("queue:f");

Apache Camel has no container dependency and is payload agnostic. Camel is just a library. You do not need to use Spring in order to use Camel. It provides a Developer Web Console in which you can edit Routes. Soon a visual tool called FuseSource Rider will be available. Other features include a fully asynchronous non-blocking routing engine, which facilitates high scalability.

Camel offers a few ways of error handling: ErrorHandlers like the DeadLetterChannelErrorHandler or using the doTry and doCatch methods:

from("direct:start")
     .doTry()
        .process(new ProcessorFail())
        .to("mock:result")
    .doCatch(IOException.class)
        .handled(false)
        .to("mock:io")
    .doCatch(Exception.class)
        .to("mock:error")
    .end();

A great article on Camel: architects.dzone.com/articles/apache-camel-integration

Quick Reference card of Camel: cheat-sheets.biz/saved-copy/rc047-010d-enterprise_integration_patterns_1.pdf

Claus Ibsen’s blog: davsclaus.blogspot.com.

In December 2010 Manning will release the book Camel in Action, written by Claus Ibsen.

Ratings:
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

{ 0 comments… add one now }

Leave a Comment

 

Previous post:

Next post:

About Whitehorses
Company profile
Services
Technology

Whitehorses website

Home page
Whitebooks
Jobs

Follow us
Blog post RSS
Comment RSS
Twitter