Re: Registration/Unregistration of ResourceProviders always triggers ResourceChangeListeners?

2020-04-09 Thread Jörg Hoh
bservation. Thanks Dirk! Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Registration/Unregistration of ResourceProviders always triggers ResourceChangeListeners?

2020-04-09 Thread Jörg Hoh
t's related to SLING-9040, but because an older version is affected as well, it's seems to have a different root cause. Did someone come across this already? Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Calling OSGi Service from JSP

2020-03-29 Thread Jörg Hoh
tics for reasonable defaults. Can you share your complete project code? Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Calling OSGi Service from JSP

2020-03-28 Thread Jörg Hoh
ingFutil) is > unknown. > I also tried > > sling.getService(rome.testly.testly1.SlingFutil.class); > > instead, but the result is the same. > > This used to work well at BND times of Sling, so I don't know what's > wrong with this R7 code. > > Thanks, > Juerg > > -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Integration testing based on feature model

2019-07-23 Thread Jörg Hoh
hardcoding them in a bundle). As much as I like your approach, I see the problem that the maven dependencies and the IT dependencies are maintained twice and also at different locations. Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Integration testing based on feature model

2019-07-22 Thread Jörg Hoh
n tests with Sling much easier. WDYT? Jörg [1] https://github.com/apache/sling-org-apache-sling-event/blob/master/src/test/java/org/apache/sling/event/it/AbstractJobHandlingTest.java -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

adaptTo() should return an Optional

2018-11-12 Thread Jörg Hoh
but that could be implemented as default method, so it's signature would not change. While I can do that in my code as well, it would be good to have it in the Adaptable interface as well; it can encourage others to use Optional instead of explicit Null Checks; and the Null checks are of

Re: Status of sling provisioning model & documentation of models

2018-10-11 Thread Jörg Hoh
t usecase is to build an exectuable I can use for integration testing, as in the case of repoinit. The docs [3] are not so much of a help here. > > > [3] https://sling.apache.org/documentation/development/slingstart.html > Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Status of sling provisioning model & documentation of models

2018-10-06 Thread Jörg Hoh
/sling-org-apache-sling-jcr-repoinit/blob/master/src/test/provisioning/it-model.txt [2] https://github.com/apache/sling-org-apache-sling-jcr-repoinit/blob/master/pom.xml#L111 [3] https://sling.apache.org/documentation/development/slingstart.html -- Cheers, Jörg Hoh, http://cqdump.wordpress.com

Re: [Discussion] | should buffer output in memory

2018-09-13 Thread Jörg Hoh
ry with a filter and some mock response object wrapping the original one. Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: [Discussion] | should buffer output in memory

2018-09-13 Thread Jörg Hoh
e platform do not contain calls to response.flush()! > > Yes, that's something we can validate and figure out, but I've seen this in too many cases, and not always a flush() was repsonsible. Also it's some very hard to validate all scripts and occassions (especially if they are

Re: [Discussion] | should buffer output in memory

2018-09-07 Thread Jörg Hoh
for. > This might be a workaround, but I don't the markup rendered by the include as variable around; also this would require us to change all occurrences of the include, which is something I would like to avoid (also hard to automate). I would rather change the default :-) Jörg -- Ch

[Discussion] | should buffer output in memory

2018-09-07 Thread Jörg Hoh
the output is unlikely to grow into the megabytes. WDYT? Should this part of sling, or should be rather create a custom tag library with our own version of the non-streaming "include" tag? Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: JCR Observation, Type ResourceResolver & idle JCR sessions

2018-08-28 Thread Jörg Hoh
nd to that ResourceResolver's life-cycle). > > I guess that's the best way to handle this. I will recommend it. Thanks! Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

JCR Observation, Type ResourceResolver & idle JCR sessions

2018-08-27 Thread Jörg Hoh
cks, so the resource resolvers are not tied to a single livecycle? Also just adding some refresh() statements to the type resolver seems not good, because then the type resolver might see a different state of the repo than the other ("main") session. Jörg -- Cheers, Jörg Hoh, http:

Re: Deprecation of SlingRepository.loginAdministrative()

2018-02-07 Thread Jörg Hoh
the developer > should be aware of it. > > Andres > > > El 2018-02-06 14:09, Bertrand Delacretaz escribió: > > On Tue, Feb 6, 2018 at 1:02 PM, Jörg Hoh <jhoh...@googlemail.com> wrote: > > ...Long story short: Is the loginAdministrative() method planned to be > removed

Re: Resource Resolver in SlingPostProcessor

2017-08-25 Thread Jörg Hoh
; the RR in my custom PostProcessor and what is the best practice? > > > [0] > https://sling.apache.org/apidocs/sling7/org/apache/sling/servlets/post/ > SlingPostProcessor.html > > Thanks, > Sabya > -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Adding bootdelegation during startup requires restart of instance

2017-07-05 Thread Jörg Hoh
to make the bootdelegation taking effect immediately or do I really need to restart the instance first? thanks, Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Not-sticky sessions with Sling?

2017-01-17 Thread Jörg Hoh
My bad: CAP = consistency, availability and partition-tolerance. Jörg 2017-01-17 19:35 GMT+01:00 Jörg Hoh <jhoh...@googlemail.com>: > HI Lance, > > 2017-01-17 19:19 GMT+01:00 lancedolan <lance.do...@gmail.com>: > >> ... >> >> If "being eventual

Re: Not-sticky sessions with Sling?

2017-01-17 Thread Jörg Hoh
he write skew, the recommendation is to use sticky-sessions. Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Join new member to Sling Oak cluster?

2017-01-14 Thread Jörg Hoh
es do have a timestamp component. > > John > -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Sling Servlet using OSGI R6 annotations

2016-11-28 Thread Jörg Hoh
ervlet annotation it works: > > > > > > *@SlingServlet(paths={"/system/mypath1", "/system/mypath2"}, > > > methods={"GET"})* > > > > > > Am I missing some configuration? > > > > > > Does someone have an example of

timing information for event handler

2016-06-07 Thread Jörg Hoh
. As a workaround we increased the JCR observation size (in Oak as well as in the OakResourceListener), but I would like to know what exactly is causing this behaviour at all. Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Fake request/response classes

2015-12-21 Thread Jörg Hoh
odebase, which I normally use to run unittests. Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Fake request/response classes

2015-12-21 Thread Jörg Hoh
Hi, I want to write a warmup feature for my application, which should run requests using SlingRequestProcessor against the instance. I am looking now at slim implementations of HttpServletRequest and HttpServletResponse, which I can provide as parameters to

Re: Fake request/response classes

2015-12-21 Thread Jörg Hoh
These mock classes are useful beyond mocking requests and responses for unittests. -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: help needed problems with redirects and https

2015-08-03 Thread Jörg Hoh
in Sling or with the new Jetty servlet engine. Any help would be appreciated. -Jason -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: rrf.getThreadResourceResolver() and stacked resourceResolvers

2015-06-07 Thread Jörg Hoh
...@apache.org: Hi, neither admin nor service RRs are put in the stack, only user RRs. If you want to update the javadocs, please provide a patch Thanks Carsten Am 05.06.15 um 09:41 schrieb Jörg Hoh: Hi, When I just reviewed the latest changes in the API package, I came across SLING-3868

rrf.getThreadResourceResolver() and stacked resourceResolvers

2015-06-05 Thread Jörg Hoh
be rather high. WDYT? -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: How to use/implement database access monitoring ?)

2015-04-24 Thread Jörg Hoh
Hi Peter, 2015-04-13 22:39 GMT+02:00 Peter Puzanovs peter.puzan...@akqa.com: pretty new to Sling :) Would love to use or implement an instrumentation tool that would track every resource's (ValueMap's) access to the database. So, my first question, Whether there is such a tool already ?

Re: single threaded mode?

2013-02-20 Thread Jörg Hoh
? -- Cheers, Jörg Hoh, http://cqdump.wordpress.com