Questions tagged [cron4j]

Cron4j is a scheduler for the Java platform which is very similar to the UNIX cron daemon.

Cron4j is a scheduler for the Java platform which is very similar to the UNIX cron daemon. With cron4j you can launch, from within your Java applications, any task you need at the right time, according to some simple rules.

See http://www.sauronsoftware.it/projects/cron4j/

22 questions
0
votes
1 answer

Managing Cron4J Scheduler within J2EE Environment

My team has created a web application which we hope to associate with a task scheduler which will send out e-mails once a day if any of the projects being run through the web application are running behind schedule. The scheduler library we're…
mcraenich
  • 745
  • 1
  • 14
  • 38
0
votes
1 answer

Use Scheduler to execute/access task from Servlet

What I would like to do: If a user on my web application (tomcat, java) performs an action and 1 week passes before he performs it again, I would like to send him an email. For example, someone performs a "like" on jan 1, 2015 then performs another…
theyuv
  • 1,556
  • 4
  • 26
  • 55
0
votes
1 answer

Scheduling java method wit persistance

I need to execute a call to a particular method daily or more, considering that the app may and the machine may reboot. I saw examples where they just put the thread to sleep but I need persistance, managing system rebooting. I have to be sure that…
rickymarchiori
  • 103
  • 2
  • 13
0
votes
1 answer

spring cron4j scheduling method invoked before bean initialization

I have build a web application and scheduled cron job using cron4j. While executing the cron the run() method is calling and in the run() method all other bean objects are showing null. Hence, I am getting NullPointerException. Below is my sample…
Aadi
  • 9
  • 2
0
votes
1 answer

how do I prevent scheduling more than once of a cron task

I am using cron4j under tomcat. I start the scheduling inside a servlet doGet(){ ... S.start(); ... } How would I prevent initiating this cron task more than once, even if I call accidentally to this servlet again?
Itay Moav -Malimovka
  • 52,579
  • 61
  • 190
  • 278
0
votes
1 answer

Cron4j pattern matching precise hour while it shouldn't

Please consider the following code String pattern = "*/17 * * * *"; Date d = new Date(); for (int i = 0; i < 10; i++) { System.out.println("Start: " + d + ", " + (d = new Predictor(pattern, d).nextMatchingDate())); } This outputs the…
Muhammad Gelbana
  • 3,890
  • 3
  • 43
  • 81
0
votes
3 answers

Can starting day be set up using cronj4?

Using cron4j, one can set up a job to run in some time in a future Scheduler s = new Scheduler(); s.schedule("5 10 * * *", job); s.start(); Using cron4j, can the job be scheduled to start "next Saturday", or on "12/21/2012"?
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
1
2