Have you looked at Quartz?
https://quartz.dev.java.net/
On Feb 29, 2008, at 11:22 AM, Markus KARG wrote:
> I expect with "task" you mean "running an EJB"? Then I would
> propose a message driven bean that uses EJB Timer API, or a
> resource adapter.
>
> Dru Devore schrieb:
>> I am in the need of having a scheduled task in my server, I would
>> say daemon but not sure if that would give the right impression.
>> Basically I need to have a task that will start up every X minutes
>> and run. I did this once many years ago with a servlet and
>> threads, I think that is how I did it though it was many years ago
>> so I am not positive that is 100% correct.
>>
>> What is the best way to have a task kicked off every X minutes
>> with only one instance running at a time for the life of a cluster?
>>
>>
>> ---
>> Dru Devore
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
> --
> http://www.xing.com/go/invita/58469
>