Hi, have a look at the scheduler of Apache Sling [1]. Using it you just need to register a Runnable with service properties containing timer or cron expression. Very straight forward and only one other Sling dependency bundle required.
Cheers, Michael [1] https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html 2015-04-20 14:16 GMT+02:00 nino martinez wael <[email protected]> : > ok, i'll just roll with quartz then.. > > On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck <[email protected]> > wrote: > > Hi, > > > > as I stated it's either in the JIRA or in the Mailinglist :-) > > here's what I found in the mailinglist: > > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html > > > > > > regards, Achim > > > > P.S. I never said it should not be used ... > > > > > > 2015-04-20 13:09 GMT+02:00 nino martinez wael > > <[email protected]>: > >> > >> Hmm I looked in JIRA but could only find this > >> > >> > https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF > >> > >> Achim Nierbeck writes that it should be not used... So i'll look into > >> something else. > >> > >> regards Nino > >> > >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré <[email protected]> > >> wrote: > >> > Hi, > >> > > >> > good point, we should add the documentation related to the scheduler > >> > feature. By the way, Decanter provides a scheduler too, it would make > >> > sense > >> > to leverage the core one in Decanter (and merge the feature of the > two). > >> > > >> > I'm creating the Jira about this. > >> > > >> > Regards > >> > JB > >> > > >> > > >> > On 04/17/2015 01:08 PM, nino martinez wael wrote: > >> >> > >> >> Hi I've started using OSGI and Karaf. I can't seem to find > information > >> >> about the scheduler feature. > >> >> > >> > > >> > -- > >> > Jean-Baptiste Onofré > >> > [email protected] > >> > http://blog.nanthrax.net > >> > Talend - http://www.talend.com > >> > >> > >> > >> -- > >> Best regards / Med venlig hilsen > >> Nino Martinez > > > > > > > > > > -- > > > > Apache Member > > Apache Karaf <http://karaf.apache.org/> Committer & PMC > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer > & > > Project Lead > > blog <http://notizblog.nierbeck.de/> > > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> > > > > Software Architect / Project Manager / Scrum Master > > > > > > -- > Best regards / Med venlig hilsen > Nino Martinez >
