just noticed, it should probably be:
public class DatastorePeriodicGC implements Job {but my question is still valid - where does org.quartz come from? Can I have the scope as 'provided' in maven? Or do I have to include the dependency as 'compile'? I've look through the eventing bundles and don't see it there. But On Oct 19, 2013, at 12:19 AM, Robert A. Decker wrote: > 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 > >
