0

I have a scenario where when I call a rest endpoint which is custom defined and I am using camel-jetty for it, the other route should start executing but it is not working as expected.

Following are the routes:

RouteDefinition routeDefinition = getRouteBuilder().from("jetty:http://localhost:8090/valueA").routeId(routeId).to("controlbus:route?routeId=route2&action=start");

RouteDefinition routeDefinition2 = getRouteBuilder().from("paho://Properties").routeId("route2").noAutoStartup().log("DataSource content: ${body}");

But during executions it shows in logger as

[qtp1272744797-29] INFO org.apache.camel.component.controlbus.ControlBusProducer - ControlBus task done [start route route2] with result -> void

And if change the start to status then it says

[qtp1272744797-29] INFO org.apache.camel.component.controlbus.ControlBusProducer - ControlBus task done [status route route2] with result -> Stopped

It seems like it starts the route but I don't know why the content of the datasource is not getting displayed.

Please help as I got stuck here for so long. Any help would be appreciated.

mdanish98
  • 65
  • 8

0 Answers0