I have a scenario when I call one endpoint the another route should execute and return the result. Lets say I have an endpoint:
http://localhost:8080/api/customer
I am using the camel-jetty to start the above servlet endpoint, like:
from("jetty:http://localhost:8080/api/customer").to("controlbus:route?routeId=route2&action=start");
When I do GET request on this endpoint it will trigger another route defined as below:
from("paho://Properties").to("jsonata://some path").routeId("route2").noAutoStratup().log("Data : ${body}");
I tried to use camel-controlbus but it is not working.
How can I achieve this scenario? Can somebody please help me in this regard?