Results 1 to 10 of 10
  1. #1
    Aschee is offline Member
    Join Date
    Mar 2011
    Posts
    10
    Rep Power
    0

    Question Setting Cron Jobs On Tomcat Server

    I am need to set up a cron job for my project in tomcat. We are using spring + tomcat . Can anyone help me in choosing any scheduler to set up the same. Your help is really appreciated and in urgent need of this.

    Thanks
    Prachi

  2. #2
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Smile

    You can use Quartz scheduler or java Timertask is even better.

    Prefer TimerTask as it is simple and easy to implement. But, keep in mind there might be some delay in execution of scheduled task. This delay would not be very huge though.

  3. #3
    Aschee is offline Member
    Join Date
    Mar 2011
    Posts
    10
    Rep Power
    0

    Question

    Hey .. Can you please guide me with set up process for TimerTask from scratch..

    Thanks
    Prachi

  4. #4
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Smile

    You can get a good understanding about Timertask from : Java Practices -> Use Timer to schedule periodic tasks

    This link shows the usage of timertask in a very simple manner.

    In case you still have any issues, then come back.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,800
    Rep Power
    19

    Default

    I'd use Quartz because it ties in with Spring really easily.
    In fact that's what's used everywhere I've worked that needs a scheduler.

  6. #6
    Aschee is offline Member
    Join Date
    Mar 2011
    Posts
    10
    Rep Power
    0

    Default

    Hey Thanks LoveLesh.. will be going through it.. And also Tolls once I completed TimerTask will also go through Quartz and come back to you guys with questions if any.

    thanks
    Prachi

  7. #7
    mailme_gx is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Hi Aschee

    I found quartz too complex to setup a schedule so I wrote my own scheduler. Quarts is a great project but for my needs it was unsuitable.

    I needed a scheduler to make a http request every couple of minutes. If this is what you are after I will be more than happy to supply some code.

    GX

  8. #8
    Aschee is offline Member
    Join Date
    Mar 2011
    Posts
    10
    Rep Power
    0

    Question

    Hey my scheduler should initiate a service file and that file has connected methods which we are doing by clicking links manually.. So me looking to set up process so that it generates in auto mode... currently looking into timer task.. not sure how it would turn out to be... Thanks for the post :)

  9. #9
    Aschee is offline Member
    Join Date
    Mar 2011
    Posts
    10
    Rep Power
    0

    Default Re: Setting Cron Jobs On Tomcat Server

    Quote Originally Posted by mailme_gx View Post
    Hi Aschee

    I found quartz too complex to setup a schedule so I wrote my own scheduler. Quarts is a great project but for my needs it was unsuitable.

    I needed a scheduler to make a http request every couple of minutes. If this is what you are after I will be more than happy to supply some code.

    GX
    Hi maileme_gx,

    Would you mind sharing that code which you are mentioning above to me at [Moderator edit: email removed]

    Thanks
    Prachi
    Last edited by DarrylBurke; 06-23-2012 at 07:58 AM. Reason: Removed email address

  10. #10
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Setting Cron Jobs On Tomcat Server

    Please don't ask for off-forum communication. Also, this is a forum, not a code mill.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Tomcat Server Error
    By Ms.Ranjan in forum Advanced Java
    Replies: 2
    Last Post: 09-28-2010, 04:59 PM
  2. Please help setting up Tomcat. Very frustrating.
    By wombatvvv in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 09-12-2010, 05:56 AM
  3. Setting Up Tomcat 7.0 in Netbeans IDE 6.9
    By contributor in forum NetBeans
    Replies: 0
    Last Post: 08-27-2010, 06:19 AM
  4. Reg Tomcat in Itaniumn Server
    By ars3181 in forum Advanced Java
    Replies: 0
    Last Post: 11-24-2008, 05:53 AM
  5. Tomcat Server : Error filterStart
    By kasipandian in forum Web Frameworks
    Replies: 0
    Last Post: 03-30-2008, 03:50 PM

Tags for this Thread

Posting Permissions

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