I have a restful webservice build on CXF framework. the requirement is that when someone hits this server i have to fetch some data from content providers like google, bing etc according to the parameters received and have to give back the same to the client. now calling service provider and getting its result is to be done using Camel Framework. i have identified that using simple routes from("direct:start").to("http://google.com).bean(ffoo|bar) can let me talk to the service provider and do whatever i want with the result. but the problem is what should be in the place of "direct:start" so that this route starts from my service method which is being hit by the client. i read a bit about POJO producing but i could not understand how does it works and whether it will solve my problem.
Also i have a query .. that in this syntax.. from().to() ... to is the consmer and from is the producer or vice versa?? because in my logs it says route is consuming from the direct:start... Would prefer a spring configuration type of answer
Thanks