ApacheCon Europe 2012

Rhein-Neckar-Arena, Sinsheim, Germany

5–8 November 2012

When Camel meets CDI

Łukasz Dywicki

Audience level:
Camel in Action

Thursday 2:30 p.m.–3:15 p.m. in Level 2 Right


CDI is new way of doing dependency injection in Java. Built on top of JSR330 provides more complex features - including custom qualifiers, scopes and extensions. Apache Camel already supports various DI containers - Spring, Guice. This talk is intent to show how CDI adoption and usage looks like. It will cover user side - how to use and development side - how it was built.


Contexts Dependency Injection is really powerfull mechanism. It was designed to be part of Java EE spec however both existing containers (Apache Open Web Beans and JBoss Weld) runs well in Java SE environment.

Apache Camel is leading integration framework designed at Apache Foundation. Supports number of protocols, platforms and bunch of features which makes it great solution.

Camel and CDI makes perfect match for everybody who would like use Camel in Java EE environment and use a typical enterprise features of server - like Tom EE / Geronimo / JBoss AS.

During presentation you will learn: - CDI basics - starting from annotations up to custom extensions. - Camel - interactions with dependency injection containers - We will built and run simple Camel application on one from application servers without piece of XML.