Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread mknair
Hi,

If I understood this correctly, I need NOT use features listed below (which
are required to be installed for sling-launchpad-oak-tar
* sling-launchpad-oak
* sling-extension-discovery-oak
* sling-scripting
* sling-extension-healthcheck
* sling-extension-bundleresource
* sling-extension-adapter
* sling-installer
* sling-servlets
* jackrabbit-sling
* tika-sling
* sling-jcr
* sling-jcr-oak
* sling-launchpad-oak-tar

instead for using the sling.event capability
1) Create a ResourceProvider in my application in similar lines to the
example you shared .
2) Install following features
* sling
* sling-commons-scheduler
* sling-commons-threads
* sling-extension-discovery
* sling-extension-event

Any configuration changes required ?


Regards

Manoj

On Sat, Jul 9, 2016 at 1:09 AM, Oliver Lietz [via Apache Sling] <
ml-node+s73963n4062354...@n3.nabble.com> wrote:

> On Friday 08 July 2016 11:22:42 mknair wrote:
> > Thanks.  Any examples we can refer to?
>
>
> http://svn.apache.org/repos/asf/sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/resourceprovider/
>
> O.
>
> [...]
>
>
>
> --
> 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-Unsatisfied-status-for-JobManagerConfiguration-tp4062265p4062354.html
> To unsubscribe from Sling JobManager With Karaf "Unsatisfied" status for
> JobManagerConfiguration, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/Sling-JobManager-With-Karaf-Unsatisfied-status-for-JobManagerConfiguration-tp4062265p4062359.html
Sent from the Sling - Users mailing list archive at Nabble.com.


Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread Oliver Lietz
On Friday 08 July 2016 11:22:42 mknair wrote:
> Thanks.  Any examples we can refer to?

http://svn.apache.org/repos/asf/sling/trunk/launchpad/test-services/src/main/java/org/apache/sling/launchpad/testservices/resourceprovider/

O.

[...]



Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread mknair
Thanks.  Any examples we can refer to?
On Jul 8, 2016 8:58 PM, "Oliver Lietz [via Apache Sling]" <
ml-node+s73963n4062349...@n3.nabble.com> wrote:

> On Friday 08 July 2016 08:18:01 mknair wrote:
> > Great!  Is there any option to use sling 7or8 without persistence?
>
> Sure. You can run Sling without JCR (and you can use your own resource
> provider).
>
> O.
>
> [...]
>
>
>
> --
> 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-Unsatisfied-status-for-JobManagerConfiguration-tp4062265p4062349.html
> To unsubscribe from Sling JobManager With Karaf "Unsatisfied" status for
> JobManagerConfiguration, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/Sling-JobManager-With-Karaf-Unsatisfied-status-for-JobManagerConfiguration-tp4062265p4062353.html
Sent from the Sling - Users mailing list archive at Nabble.com.


Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread Oliver Lietz
On Friday 08 July 2016 08:18:01 mknair wrote:
> Great!  Is there any option to use sling 7or8 without persistence?

Sure. You can run Sling without JCR (and you can use your own resource 
provider).

O.

[...]



Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread mknair
Great!  Is there any option to use sling 7or8 without persistence?
On Jul 8, 2016 8:44 PM, "Oliver Lietz [via Apache Sling]" <
ml-node+s73963n406234...@n3.nabble.com> wrote:

On Friday 08 July 2016 06:53:16 mknair wrote:
> Thanks Olivier. What we are looking for is  feature repository like
>
>
http://repo1.maven.org/maven2/org/apache/sling/org.apache.sling.launchpad/6/
> org.apache.sling.launchpad-6-features.xml
>
> for Sling 7 and Sling 8 so that we can directly refer from our
> applications. Is it planned in the near future ?

Launchpad Karaf Features is decoupled from Launchpad (builder) and it has
now
its own version. That will allow releases more frequently (and fine grained
features). The initial release is blocked by some issues in Sling and Karaf
but should happen this year (2016) finally.

O.

[...]



--
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-Unsatisfied-status-for-JobManagerConfiguration-tp4062265p4062345.html
To unsubscribe from Sling JobManager With Karaf "Unsatisfied" status for
JobManagerConfiguration, click here

.
NAML





--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/Sling-JobManager-With-Karaf-Unsatisfied-status-for-JobManagerConfiguration-tp4062265p4062348.html
Sent from the Sling - Users mailing list archive at Nabble.com.


Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread Oliver Lietz
On Friday 08 July 2016 06:53:16 mknair wrote:
> Thanks Olivier. What we are looking for is  feature repository like
> 
> http://repo1.maven.org/maven2/org/apache/sling/org.apache.sling.launchpad/6/
> org.apache.sling.launchpad-6-features.xml
> 
> for Sling 7 and Sling 8 so that we can directly refer from our
> applications. Is it planned in the near future ?

Launchpad Karaf Features is decoupled from Launchpad (builder) and it has now 
its own version. That will allow releases more frequently (and fine grained 
features). The initial release is blocked by some issues in Sling and Karaf 
but should happen this year (2016) finally.

O.

[...]



Re: Sling JobManager With Karaf "Unsatisfied" status for JobManagerConfiguration

2016-07-08 Thread mknair
Thanks Olivier. What we are looking for is  feature repository like

http://repo1.maven.org/maven2/org/apache/sling/org.apache.sling.launchpad/6/org.apache.sling.launchpad-6-features.xml

for Sling 7 and Sling 8 so that we can directly refer from our
applications. Is it planned in the near future ?

On Thu, Jul 7, 2016 at 1:09 PM, Oliver Lietz [via Apache Sling] <
ml-node+s73963n4062282...@n3.nabble.com> wrote:

> 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
> >  > description='jobmanager :: consumer'>
> > sling-extension-event
> > mvn:com..jobmgr/jobmanager-consumer/1.0.0-SNAPSHOT
> > 
> >
> > 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] <
> >
> > [hidden email] >
> 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=4062265=bWtuYWlyQGdtYWlsLmNvbXw0MDYyMjY1fDMxOT
> > > YwODE3> .
> > > NAML
> > > <
> http://apache-sling.73963.n3.nabble.com/template/NamlServlet.jtp?macro=ma
> > >
>