Currently we have a single schedule that would execute the method
@Scheduled(cron = "${SEND_SCHEDULE_1}")
public void scheduledTask() {...}
We are looking for a solution that would schedule the same task on two different times during the week, one timer for Mon-Sat and another timer for Sunday.
Is there something similar to JSR-000318 - @Schedules and @Schedule like so? @Schedules( { @Schedule(hour=”11”, dayOfWeek=”Mon-Sat”), @Schedule(hour=”10”, dayOfWeek=”Sun”) }) public void scheduledTask() { ... }
@Schedulesexists since 4.0 - Evgeny