Hi! Some time ago I already worked on implementing Apache Sling Scheduler in Karaf (see https://issues.apache.org/jira/browse/KARAF-751). The patches also were merged into trunk in the end, but don't remember which version it was...
Back then one problem was that the Sling scheduler itself had Sling internal dependencies and so parts of the code where copied. If there is a solution to use Sling scheduler as a dependency now that would be much better. best, Lukas -----Ursprüngliche Nachricht----- Von: Jean-Baptiste Onofré [mailto:[email protected]] Gesendet: Mittwoch, 22. April 2015 10:25 An: [email protected] Betreff: Re: Scheduler feature Thanks Olivier. It would be great that Sling provides a features XML that we can reference in etc/org.apache.karaf.features.repos.cfg. Like this, users would be able to do: feature:repo-add sling and after: feature:install sling-scheduler (and maybe other features). Can I help on this ? Regards JB On 04/22/2015 10:16 AM, Oliver Lietz wrote: > On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote: >> Hi Michael, > > Hi, > >> interesting indeed. We can just provide a scheduler feature leveraging it. >> I will create a Jira about that. > > I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the > feature "sling" [0]. If others are interested in Sling's Commons, we > can move them to dedicated features. Please open an issue at Sling for > Launchpad Karaf Features. > > Regards, > O. > > [0] > https://github.com/sling-git/org.apache.sling.launchpad.karaf-features > /blob/master/src/main/feature/feature.xml > >> Regards >> JB >> >> On 04/21/2015 10:15 PM, Michael Täschner wrote: >>> 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-com >>> mons-s >>> cheduler.html >>> >>> 2015-04-20 14:16 GMT+02:00 nino martinez wael >>> >>> <[email protected] <mailto:[email protected]>>: >>> ok, i'll just roll with quartz then.. >>> >>> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck >>> >>> <[email protected] <mailto:[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] > <mailto:[email protected]>>: >>> >> Hmm I looked in JIRA but could only find this >>> >>> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20K >>> ARAF >>> >>> >> 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] <mailto:[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] <mailto:[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 > > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
