Re: Call function periodically

2010-09-02 Thread Werner Keil
Should you prefer using Java Concurrent, please have a look at what these guys did: http://code.google.com/p/parfait/ They succesfully merged *JSR-275*, the Units of Measure API with elements in java.util.concurrent, allowing a far greater flexibility with regard

Re: Call function periodically

2010-09-02 Thread Werner Keil
You could also use Quartz. Werner On Thu, Sep 2, 2010 at 11:18 AM, wrote: > > This has to be done independently of the activity of the users on the web > application > Whats not clear to me is if you will be updating a UI or not... unless you > are, then why use JavaScript? Use IoC and > java.u

Re: Call function periodically

2010-09-02 Thread P . Stavrinides
> This has to be done independently of the activity of the users on the web > application Whats not clear to me is if you will be updating a UI or not... unless you are, then why use JavaScript? Use IoC and java.util.concurrent.ScheduledExecutorService to create a scheduler service with a runna

Re: Call function periodically

2010-08-31 Thread Kalle Korhonen
Quartz is nice but if you need something simple to happen every minute just use plain Java: timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { @Override public void run() {

Re: Call function periodically

2010-08-31 Thread Laurent Guerin
Hi, you should look at quartz integration provided by ChenilleKit : http://www.chenillekit.org/chenillekit-quartz/index.html 2010/9/1, Mite : > > I need to have a function called every one minute from the moment the > application is deployed on the server, that does some database row updates. >

Re: Call function periodically

2010-08-31 Thread Bryan Lewis
I had good results with the PeriodicUpdate mixin described at http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5 On Tue, Aug 31, 2010 at 6:25 PM, Mite wrote: > > I need to have a function called every one minute from the moment the > application is deployed on the server, that do