/** * Sends out the holiday newsletter */ @Schedules({ @Schedule(second = "0", minute = "0", hour = "12", dayOfMonth = "Last Thu", month = "Nov", year = "*"), @Schedule(second = "0", minute = "0", hour = "12", dayOfMonth = "18", month = "Dec", year = "*") }) @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public void sendHolidayNewsletter() { // Sends out a holiday newsletter... }
@Schedules({ @Schedule(month = "5", dayOfMonth = "20-Last", minute = "0", hour = "8"), @Schedule(month = "6", dayOfMonth = "1-10", minute = "0", hour = "8") }) private void plantTheCorn() { // Dig out the planter!!! }
@Schedules({ @Schedule(month = "9", dayOfMonth = "20-Last", minute = "0", hour = "8"), @Schedule(month = "10", dayOfMonth = "1-10", minute = "0", hour = "8") }) private void harvestTheCorn() { // Dig out the combine!!! }
@Schedules({ @Schedule(dayOfMonth = "Last"), @Schedule(dayOfWeek = "Fri", hour = "23") }) public void doPeriodicCleanup() { logger.info("multi scheduler example"); }
@Schedules( {@Schedule(hour="16",dayOfWeek="Mon-Thu"), @Schedule(hour="16",dayOfWeek="Mon-Thu")}) public void broadcastNewBids() { }
@Schedules({ @Schedule(second = "0", minute = "0", hour = "0", month = "*", dayOfMonth = "15", year = "*"), @Schedule(second = "59", minute = "59", hour = "23", month = "*", dayOfMonth = "Last", year = "*") }) public void method() { }