camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Correct use of camelproxy?
Date Mon, 24 Sep 2012 07:49:34 GMT
On Mon, Sep 24, 2012 at 3:43 AM, zuff <bhtan1982@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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message