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: 
http://old.nabble.com/Using-Guice-with-Camel-tp26517323p26517323.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to