tags:

views:

7

answers:

1

Using struts2, is there a way to trigger an action to occur at specified intervals?

Currently I am writing action classes that perform tasks that need to run at specified intervals and curling the url at the times I need to. Is there a better way to do this than invoking an http request like this?

+1  A: 

No, there isn't. But you can easily use Quartz, that is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application, probably the most used scheduler in Java environments.

Here is the quick start Quartz guide, just in case you find it useful.

Guido
Thanks, I'll have to look into that.
partkyle