So, it turns out that there's no worthwhile annotation support in Spring
2.0.6 which scuppers that plan.
I've been having a go at using an ApplicationListener bean - when all the
beans have been configured I get a ContextRefreshed callback and I can go
and find my beans and inject configuration myself.

This might work but I have a couple of hurdles currently:

1)  How do I find my route builder?  Using getBeansOfType doesn't seem to
find it (with or without the includingAncestors option).  If I get the
camelcontext bean instead, is there a way to dig inside it to find my route
builder?

2)  Assuming I find a solution to 1), I would need to defer my route
creation (currently done in the configure() method) until after I have
injected my configuration.  So, instead, I would plan to execute my
from("foo").to("bar") code manually after I have injected the config. Will
this work, or does camel expect the routes to be set up precisely when the
configure() method is called?

Thanks,

-Dominic
-- 
View this message in context: 
http://www.nabble.com/Configuring-a-Routebuilder-from-activemq.xml-file--tp14923839s22882p14948065.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to