Results 1 to 5 of 5
  1. #1
    ShinTec's Avatar
    ShinTec is offline Member
    Join Date
    Jan 2010
    Posts
    51
    Rep Power
    0

    Question Need a way to run a method in java at a certain time

    Hi Forum
    I have my problem i that a want to run a send email method at a certain time eg Friday 2pm are there any classes/methods in java that allow for this behaviour
    any help would be much appreciated and thank you in advance

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default

    Sounds like an OS scheduling question, not a Java question. Unless you want to have your Java program always running, and just wait until that time to actually do anything.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    ShinTec's Avatar
    ShinTec is offline Member
    Join Date
    Jan 2010
    Posts
    51
    Rep Power
    0

    Default

    yeah it for a web app that will be runing on tomcat (6/7 cant remember) that why i was asking

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Quartz is the most common scheduler I think, if you want to keep it in your app.

  5. #5
    ShinTec's Avatar
    ShinTec is offline Member
    Join Date
    Jan 2010
    Posts
    51
    Rep Power
    0

Similar Threads

  1. Replies: 3
    Last Post: 08-23-2011, 01:46 PM
  2. passing type info to a method during run time
    By alinaqvi90 in forum Advanced Java
    Replies: 2
    Last Post: 10-20-2010, 03:03 PM
  3. Method execution time
    By javaplus in forum Advanced Java
    Replies: 3
    Last Post: 11-26-2007, 10:51 AM
  4. Time method
    By carderne in forum New To Java
    Replies: 5
    Last Post: 11-05-2007, 10:34 AM
  5. Time restricted method
    By toby in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:54 AM

Posting Permissions

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