Hi,

I'm trying to set up some jobs using the new jobs system. My first attempt is a 
periodic job.

Based on the last section here:
http://sling.apache.org/documentation/the-sling-engine/eventing-and-jobs.html

I set up class as:

@Component(enabled = true, immediate = true, metatype = true)
@Service(value = org.quartz.Job.class)
@Properties({@Property(name="scheduler.expression", value="3 0 * * * ?"), 
@Property(name="scheduler.concurrent", boolValue=false)})
public class DatastorePeriodicGC implements Runnable {

See: I'm trying to use the @Service value of org.quartz.Job.class rather than 
java.lang.Runnable.class. Runnable works fine for me but I want to try to use 
org.quartz.Job just because I want to implement everything using the new 
classes.

So my first question is, where does org.quartz.* come from? I've look through 
the declarations of the event bundles and I don't see it anywhere. Do I have to 
bundle it myself? I'm getting import errors.

(lesser importance, will the scheduler.expression run every 3 am?)

Rob

Reply via email to