Hi Its probably easier to create custom - SpringRegistry - SpringInjector
that uses BeanFactory instead of what Camel offers. See the source code in camel-spring. And then just create Camel as SpringCamelContext camel = new SpringCamelContext(); camel.setInjector(new MyBeanFactoryInjector()); camel.setRegistry(new MyBeanFactoryRegistry()); eg use custom injector and registry. And possible something else down the road. But that should get you on a start with Spring. This works with the Java DSL. For XML DSL, then that's much harder, as you would need to use a custom CamelContextFactoryBean. On Tue, Apr 30, 2013 at 4:41 PM, kalyand <register.kal...@gmail.com> wrote: > Hi again.. > > I'm checking camel-spring currently and experimenting with few classes. > > My goals are in the following order: > - Get Java DSL working and the Routes be Spring-injected so that I could > pump in some data by fetching it from database > - Get Dataformats and transformations working > - To be able to make REST calls outside the server with http component or > with bridgeEndpoint=true > - Get direct-vm, vm, seda calls working between multiple camel contexts > - Finally, Get Spring DSL working (good to have) > > Is it possible for you to give them (goals) some weights (say fibonocci) in > terms of effort I might endup spending. It would greatly help me in > negotiating my deliverables. > > Probably a lame question but what does camel-core-xml contain ? > > Regards, > Kalyan > > P.S: I have read Camel-in-Action and it has been of good help. Thank you :) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-with-BeanFactory-tp5731764p5731807.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen