You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Is Camel IoC friendly?

Absolutely! (smile) We've gone out of our way to make Camel work great with Spring and to reuse all of Spring 2.x's power. For example

  • we allow the CamelContext, Components and Endpoints to be configured in Spring using Spring custom XML namespaces or traditional bean/property elements
  • we implement a spring BeanPostProcessor to allow POJOs to be injected with Camel resources along with powerful Bean Integration which allows any spring-injected POJO to be used inside Camel along with full support for Spring Remoting.

What we've tried to do is implement the Inversion Of Control With Smart Defaults pattern.

Spring is clearly the leading IoC container; though there are some others such as Guice, so we've decoupled the IoC container. camel-core has no dependencies on anything other than commons-logging; camel-spring contains all the spring integration etc.

  • No labels