[1.0.0] Sling metrics one bundle works other does not register?

2017-03-17 Thread nino martinez wael
HI I have a wierd problem. I've been using Sling metrics with great success in one of my bundles. Today I wanted to expand my usage to my frontend bundle. AND not matter what I do none of my api calls register at all.. The metric service are discovered as it should but this line below, never

Re: Question about performing background processing triggered by a request.

2017-03-17 Thread John Logan
It appears that the LoginException was because I was mistakenly invoking the resolver factory getServiceResourceResolver() method instead of using getResourceResolver() with the request authInfo. With this change I now don't see a LoginException, but I get a JCR AccessDeniedException when the

RE: Question about performing background processing triggered by a request.

2017-03-17 Thread Olaf
Hi John! Are you aware of the Sling Background Servlets Engine (see https://sling.apache.org/downloads.cgi / https://issues.apache.org/jira/browse/SLING-550)? There is little documentation on this, but IMO it might be what you need or at least provide a good blueprint. Kind regards, Olaf

Question about performing background processing triggered by a request.

2017-03-17 Thread John Logan
Hi, I was wondering whether it's possible for a resource request to invoke a service that performs background processing, such that the worker thread spawned by the service has a resource resolver and JCR session based on the authentication info for the requesting user. I tried using