I have a job that has to be run
My thinking is - Either
Is this possible?
@Schedules
annotation can be used to set multiple calendar-based timer expressions.
This annotation will get rid of the redundancy of writing the same method multiple times.
In the following example, the first expression sets a timer to expire on the last day of every month. The second expression sets a timer to expire every Friday at 11:00 PM.
@Schedules ({
@Schedule(dayOfMonth="Last"),
@Schedule(dayOfWeek="Fri", hour="23")
})
public void doPeriodicCleanup() { ... }