UseCase: In my app have one REST Controller, developed with the help of the Spring boot, my requirement is, I have to pass the request data from controller to the route, from route again need to pass data to MQ
Here how can I pass the inputReq data from controller to the route? could anyone please help
@Controller
public class RequestController {
@PostMapping("/request")
public String requestMapping(@RequestBody String inputReq) {
new ProduceRouter(); // instance of the apache camel route
return null;
}
}
Below one the apache camel route:
@Component
public class ProduceRouter extends RouteBuilder {
@Override
public void configure() throws Exception {
.from("jms:RequestQueue?disableReplyTo=true")
.log("Received Body is ${body} and header info is ${headers} ");
}
}