You can use the whiteboard pattern. This is documented here: http://s.apache.org/xg
In your case, you can set the scheduler.period to 1800 (30 x 60) and it should get picked up automatically. HTH, Justin On Mon, Jul 18, 2011 at 1:23 PM, Sun, Peiyu <[email protected]> wrote: > Hi, > > Could someone let me know what would be the best way to run a job every 30 > minutes with sling? I have created the job implementing the Runnable > interface and created my own scheduler service in which the job is added to > scheduler job queue. It seems to be running fine. Is this how it's supposed > to be done, or is there an configurable place where I can register my job > without programming against the scheduler service? > > Thanks, > patrick > > > ** > This e-mail message is intended only for the designated recipient(s) named > above. The information contained in this e-mail and any attachments may be > confidential or legally privileged. If you are not the intended recipient, > you may not review, retain, copy, redistribute or use this e-mail or any > attachment for any purpose, or disclose all or any part of its contents. If > you have received this e-mail in error, please immediately notify the sender > by reply e-mail and permanently delete this e-mail and any attachments from > your computer system.
