1

I have a job and I need to run every day at a certain time.

What i need?

    @BusinessObject("mail")
    @EnableScheduling
    public class MailImpl implements Mail {

        private @Log Logger log;

        private @Inject MailService mailService;

        @Override
        @Scheduled(fixedRate = 60000000, initialDelay = 30000000)
        public void sendMails() {

            //TODO send emails

                }
}
PurpleSoft
  • 146
  • 11
  • 2
    Possible duplicate of [How to run certain task every day at a particular time using ScheduledExecutorService?](http://stackoverflow.com/questions/20387881/how-to-run-certain-task-every-day-at-a-particular-time-using-scheduledexecutorse) – Jure Feb 03 '16 at 09:24

0 Answers0