On Thursday 07 July 2016 08:44:28 mknair wrote: > Hi Olivier, Hi,
just to make sure, as you are mentioning sling-commons-scheduler below (which is part of the sling feature), you want to use Sling Event? https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html "The notion of Job used in this context is a different one than the one used for Sling Jobs. The main difference is that a scheduler's job is not persisted." > Thanks for the response. We are building a Karaf based service which uses > Sling-Event-JobManager. Following are the steps we followed > * Referred to github feature.xml > https://github.com/apache/sling/blob/trunk/contrib/launchpad/karaf/org.apach > e.sling.launchpad.karaf-features/src/main/feature/feature.xml and in our > Karaf project added following features as dependency (in our feature.xml) > * sling > * sling-commons-scheduler > *sling-commons-threads > * sling-extension-discovery > * sling-extension-discovery-impl > * sling-extension-event > > and added sling-extension-event in our feature definition as below > <feature name='jobmanager-consumer' version='${project.version}' > description='jobmanager :: consumer'> > <feature version='${feature.version}'>sling-extension-event</feature> > <bundle>mvn:com..jobmgr/jobmanager-consumer/1.0.0-SNAPSHOT</bundle> > </feature> > > We did not add any other features from the github link above as we are more > interested in the sling.event.* bundle. So added only yhe dependencies for > this specific bundle. > > Further we installed our feature and on observing at webconsole we found > the error mentioned in the mail above. > My initial suspicion was that JobManagerConfiguration is failing due to > some file system permission issue, but as a super user as well we could not > bring it up. I also looked into Karaf log and could not see any error > scenarios logged in JobManagerConfiguration. So currently I am suspecting > that some dependent bundle is not started (like EnvironmentComponent, > ResourceResolverFactory , QueueConfigurationManager etc). > > Kindly let me know if the steps followed is correct. Sling Jobs from Sling Event are persisted. So Sling Event requires a SlingRepository implementation which is provided by org.apache.sling.jcr.oak.server – either with a SegmentNodeStore or a DocumentNodeStore. You will need something like sling-launchpad-oak-tar or sling-launchpad-oak-mongo. Such dependencies will be expressed with OSGi capabilities in the future. Regards, O. > Regards > > > > > On Thu, Jul 7, 2016 at 7:51 PM, Oliver Lietz [via Apache Sling] < > > [email protected]> wrote: > > On Thursday 07 July 2016 06:25:17 mknair wrote: > > > I am trying to use Sling JobManager with Apache Karaf and trying out a > > > program as described here (). > > > > Where? > > > > > After installing the features, I am getting the following error > > > > Which features? > > > > > ["Unsatisfied","Service Name: > > org.apache.sling.event.impl.jobs.config.JobManagerConfiguration","Multiple: > > > single","Optional: mandatory","Policy: static","No Services bound"] > > > Any one encountered this error before ? Appreciate your help. > > > > No. Works fine with latest Lauchpad Karaf Features/Distribution (sling- > > launchpad-oak-tar and sling-extension-event). > > > > Regards, > > O. > > > > > Regards > > > > > > > > > > > > -- > > > > > View this message in context: > > http://apache-sling.73963.n3.nabble.com/Sling-JobManager-With-Karaf-Unsati > > s > > > > > fied-status-for-JobManagerConfiguration-tp4062265.html Sent from the > > > > Sling - > > > > > Users mailing list archive at Nabble.com. > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > http://apache-sling.73963.n3.nabble.com/Sling-JobManager-With-Karaf-Unsati > > sfied-status-for-JobManagerConfiguration-tp4062265p4062278.html To > > unsubscribe from Sling JobManager With Karaf "Unsatisfied" status for > > JobManagerConfiguration, click here > > <http://apache-sling.73963.n3.nabble.com/template/NamlServlet.jtp?macro=un > > subscribe_by_code&node=4062265&code=bWtuYWlyQGdtYWlsLmNvbXw0MDYyMjY1fDMxOT > > YwODE3> . > > NAML > > <http://apache-sling.73963.n3.nabble.com/template/NamlServlet.jtp?macro=ma > > cro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespac > > es.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web > > .template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.na > > ml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemai > > l.naml> > -- > View this message in context: > http://apache-sling.73963.n3.nabble.com/Sling-JobManager-With-Karaf-Unsatis > fied-status-for-JobManagerConfiguration-tp4062265p4062279.html Sent from the > Sling - Users mailing list archive at Nabble.com.
