camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Using Guice with Camel
Date Thu, 26 Nov 2009 08:37:48 GMT

I think James Strachan can shed lights on the camel-guice as he build it.
I am sure there are some features missing in this component so we can
use help to improve it.

On Wed, Nov 25, 2009 at 6:50 PM, mumbly <> wrote:
> I've been taking a look at using Camel with Guice for DI, but I'm having a
> little trouble understanding exactly what the integration provides. I've got
> the configuration aspect and that seems to work fine. But it is unclear to
> me if/how to work with Guice enhanced components. Specifically, if I am
> using a bean component which uses @Inject, it doesn't appear that the bean
> is being pulled from the Guice context (in other words, the other components
> aren't being injected).
> I'm new to both Camel and Guice, so I could be missing something obvious
> here or there may be another pattern for DI using Guice with Camel that I
> missed. So I guess my basic question is does the Camel/Guice integration
> provide the ability to inject components within the routing chain? with the
> bean component?
> I see in the Guice example included in the dist, but it only seems to deal
> with using Guice for configuration of the routes.
> --Tim
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message