Results 1 to 8 of 8

Thread: Using Quartz job scheduler to send e-mails

  1. #1
    Join Date
    Mar 2007
    Posts
    7

    Default Using Quartz job scheduler to send e-mails

    Hi,

    I am planning to use Quartz API to send the e-mails to the users. Users will receive emails on a daily or weekly basis based on their selection.
    Can we use the same job here in both cases with different triggers associated with it, to send out e-mails based on user's selection?

    Any further information in this regard is most welcome.

    Thanks.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Sounds like a reasonable thing to do. The Job should be exactly the same, the only difference is the execution times hence multiple triggers. Sounds ok IMHO.

  3. #3
    Join Date
    Mar 2007
    Posts
    7

    Default

    Hi,

    How is the job failure handled in case of Quartz jobs?
    If the job does not run completely then how to make sure that it will restart from the correct position?

    Thanks.

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    It depends what you mean by job failure? An exception is thrown whilst excecuting the job? The job misfires?

  5. #5
    Join Date
    Mar 2007
    Posts
    7

    Default

    It could be any type of failure including system failure. Say a job is supposed to send out 200 messages and server went down in between and job could send only 100 messgaes.
    After the system comes back up, how is this situation handled?

  6. #6
    Join Date
    Mar 2007
    Posts
    7

    Default

    Hi,

    Could anyone provide further information here?

    Thanks.

  7. #7

    Default

    It shouldn't be any big issue with your this task. I had used Quartz with Spring without any development problems. You should be able to find a sample on the usage situation and learn how to program it right. It seems to be straightforward to me.

  8. #8
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    If the job is persistent then there aren't any worries about the server going down. As you say your issue is more todo with how far through the execution list you have gotten before the server went down. I guess you'd have to store something so upon a restart you knew where to start from.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •