On Tue, Jul 7, 2009 at 11:58 PM, tfredrich<tfredr...@yahoo.com> wrote: > > Hi Claus, > > Thanks for your reply. I downloaded and tried with the snapshot dated Tue > Jul 07 17:52:26 GMT+00:00 2009. I got no love... :-( > > The SpringInjector is still attempting to instantiate the route builders > using the default constructor instead of auto-wiring using the constructor > that takes a CamelContext as a parameter. If I use the previous revision of > SpringInjector (revision #752893) things appear OK as that revision calls > the createBean(type, autowireMode, dependencyCheck) API vs. simply > createBean(type).
implement CamelContextAware and you should get the context injected with the setter. Can you post your route builder code? > > Perhaps there is another way to get the CamelContextFactoryBean to > (subsequently) auto-wire the route builders that I'm not seeing? > > Thanks, > --Todd > > Claus Ibsen-2 wrote: >> >> ... >> >> Can you try SNAPSHOT as we have fixed an issue with RouteBuilders not >> being fully post processed by Spring. >> See CAMEL-1663. >> >> ... >> > > -- > View this message in context: > http://www.nabble.com/CamelContext-No-Longer-Auto-Wires-Via-Package-Element--tp24363086p24382091.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus