Re: transform CrontabRouteBuilder to rest service

2022-08-31 Thread ski n
Yes, this is possible. Probably the best way is to split the current route in multiple routes (each with its own function). You can even keep the crontab when needed. Something like this: rest("/api") .post("/transfertrain") .to("direct:transfertrain"); from(Quartz.compose(getClass().getSi

transform CrontabRouteBuilder to rest service

2022-08-31 Thread Giovanni Di Lembo
Hi all I have a CrontabRouteBuilder that I like to transform to a rest service with camel Actually I have: > from(Quartz.compose(getClass().getSimpleName(), getGroup(), > Quartz.setCron(getScheduling()).asText())) > // routeId > .routeId(getRouteId()).group(getGroup()) > // set