package de.predic8.quartz;

import de.predic8.routes.DailyMailNotification;
import org.apache.camel.builder.RouteBuilder;

public class DailyMail extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        // cron: at 10:00 pm
        //from("quartz2://notify?cron=0+0+22+*+*+?")
        //from("quartz2://notify?cron=0+0+0/24+*+*+?") // every 30 minutes
        //from("quartz2://notify?cron=0+*+*+*+*+?")
        //from("quartz2://notify?cron=0+0+21+?+*+*+*") // at 21:00 every day
        from("quartz2://notify?cron=*/5+*+*+*+*+*+*")
                .routeId("DailyMal Quartz")
                .process(exchange -> {
                    DailyMailNotification notify = new DailyMailNotification();
                    System.out.println("Sending daily mail...");
                    notify.start();
                });
    }
}

package de.predic8.quartz;

import de.predic8.routes.DailyMailNotification;
import org.apache.camel.builder.RouteBuilder;

public class DailyMail extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        // cron: at 10:00 pm
        //from("quartz2://notify?cron=0+0+22+*+*+?")
        //from("quartz2://notify?cron=0+0+0/24+*+*+?") // every 30 minutes
        //from("quartz2://notify?cron=0+*+*+*+*+?")
        //from("quartz2://notify?cron=0+0+21+?+*+*+*") // at 21:00 every day
        from("quartz2://notify?cron=0+0/5+*+1/1+*+?+*") //every 5 minutes
                .routeId("DailyMal Quartz")
                .process(exchange -> {
                    DailyMailNotification notify = new DailyMailNotification();
                    System.out.println("Sending daily mail...");
                    notify.start();
                });
    }
}

fix in cron