On Sun, Mar 25, 2012 at 12:09 PM, sushil_vsk5 <sushil_v...@yahoo.co.in> wrote:
> Thanks a lot for that clarification. All parts are clear but what is not
> clear is, lets say my Camel Context is configured through Spring, how can I
> get access to a Producer Template from a POJO which is not managed by either
> Spring or Camel. Its just a plain old Java class. How do I get the handle
> for a Producer Template inside it?
>

If you define Camel in the Spring XML file, eg <camelContext> in the
Spring XML file, then
you just need to figure out how to get access to Spring from your POJO.

And then from Spring you can get access to the Camel / producer template.


> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Invoking-Camel-Routes-from-existing-Servlets-POJOS-tp5592834p5593025.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to