On Mon, Sep 24, 2012 at 3:43 AM, zuff <bhtan1...@live.com> wrote: > Hi All, > > I managed to get the route to work. However, I did this by annotating > @Produce(uri="direct:resultProcessor") on the resultProcessor instance > variable in the controller class. Is it possible to decouple camel from the > code, and just use the camelContext.xml for configuration? >
Yes it can be all done in the XML file only. You would need though in the XML to setup IoC for the proxy by its id, eg where you need to use it, you need to inject the bean by id "resultProxy". eg standard spring bean IoC stuff. > Thanks and Best Regards, > Zuff > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Correct-use-of-camelproxy-tp5719716p5719818.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