Sling mapping & alias hostnames

2013-01-09 Thread Jörg Hoh
Hi, I have multiple domains which should share the same sling mappings, let's say it's our production system and the QA system. For both I want to have the very same settings, but we don't want to maintain it twice. Is there a way to have a structure via /etc/map/http/www.ourdomain.com/... and

Re: Increase number of tracked requests / recent requests

2013-01-29 Thread Jörg Hoh
ss, that would be now a question for a CQ5 forum or group :-) (There is a "Day Communique" google group as well as http://forums.adobe.com/community/digital_marketing_suite/cq5) Anyway, please check your error.log for any occurrences of "org.apache.sling.engine.impl.SlingMainServlet". kind regards, Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com

Re: single threaded mode?

2013-02-20 Thread Jörg Hoh
d9e-ed9a-42bf-a8c6-14c74b6b3858/{ > > http://www.day.com/jcr/cq/1.0}lastReplicatedBy has been modified > > externally > > > > on different JCR items. > > > > How can I run sling in single threaded mode? Only one thread will write > to > > the repository. Or, one servlet thread handles all concurrent HTTP > requests > > (after queuing them up). > > Is this possible? > > > -- Cheers, Jörg Hoh, http://cqdump.wordpress.com

Logging relative to a specific path

2014-11-27 Thread Jörg Hoh
Hi, I am just evaluating if it's possible to specifiy a directory, which is used to resolve all relative log file against. The documentation states, it always resolves against the "sling.home" directory, but can I change this? I haven't found any pointer neither in the source nor on the documentat

Re: Logging relative to a specific path

2014-11-28 Thread Jörg Hoh
directory handed over to the > LogWriterManagedServiceFactory for OSGi-based logging configuration. > > On the other hand Logback configuration files are supported as well these > days and I am not really sure how relative paths are handled there. > > Regards > Felix

Re: Logging relative to a specific path

2014-12-07 Thread Jörg Hoh
28, 2014 at 7:33 PM, Felix Meschberger > wrote: > > Hi > > > > How about a sling.log.root property, which we define as > > > >> sling.log.root = ${sling.home} > > > > in the sling.properties ? > > > > Regards > > Felix > > &g

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 : > 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 ? > If not, what wou

rrf.getThreadResourceResolver() and stacked resourceResolvers

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

Re: rrf.getThreadResourceResolver() and stacked resourceResolvers

2015-06-07 Thread Jörg Hoh
; > 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 lat

Re: help needed problems with redirects and https

2015-08-03 Thread Jörg Hoh
apache is in the form of https. Not sure if something changed 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

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 Sling.RequestProcessor.processRequest()

Re: Fake request/response classes

2015-12-21 Thread Jörg Hoh
; -Bertrand > > [1] > https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/servlet/ > These would be sufficient. But I would like to have them in a "mainline" bundle and not in a codebase, which I normally use t

Re: Fake request/response classes

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

timing information for event handler

2016-06-07 Thread Jörg Hoh
l up. 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: Sling Servlet using OSGI R6 annotations

2016-11-28 Thread Jörg Hoh
{"/system/mypath1", "/system/mypath2"}, > > > methods={"GET"})* > > > > > > Am I missing some configuration? > > > > > > Does someone have an example of this kind of configuration? > > > > Which version of maven-bundle-plugin (or bnd-maven-plugin) are you > > using in your build? > > If I recall correctly, the R6 annotations require the use of the 3.x > > versions of either of the plugins to have the annotations be processed > > appropriately. > > > > > > -- > Francisco Ribeiro > *SCEA|SCJP|SCWCD|IBM Certified SOA Associate* > -- 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
ter luck on oak-...@jackrabbit.apache.org . > > The most relevant online doc I could find regarding clustering was: > > http://jackrabbit.apache.org/oak/docs/nodestore/documentmk.html > > AFAICT it didn't say anything about clock synchronization, but the MVCC > revision names do have a timestamp

Re: Not-sticky sessions with Sling?

2017-01-17 Thread Jörg Hoh
mmendation is to use sticky-sessions. 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 : > HI Lance, > > 2017-01-17 19:19 GMT+01:00 lancedolan : > >> ... >> >> If "being eventual" is the reason we can't go stateless, then how is a

Adding bootdelegation during startup requires restart of instance

2017-07-05 Thread Jörg Hoh
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: Adding bootdelegation during startup requires restart of instance

2017-07-10 Thread Jörg Hoh
0 Bertrand Delacretaz : > Hi Joerg, > > On Wed, Jul 5, 2017 at 4:06 PM, Jörg Hoh wrote: > > ...What I did: > > * Place all files in place > > * Added my bootdelegation statements to ${sling.home}/sling.properties > > * started up the instance... > > AFAIK if

Re: Resource Resolver in SlingPostProcessor

2017-08-24 Thread Jörg Hoh
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

Deprecation of SlingRepository.loginAdministrative()

2018-02-06 Thread Jörg Hoh
admin. Long story short: Is the loginAdministrative() method planned to be removed? If yes, we should clearly give best practices and document how it can be replaced even in the non-trivial cases. If it's going to stay, we should remove the deprecation warning. -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh

Re: Deprecation of SlingRepository.loginAdministrative()

2018-02-07 Thread Jörg Hoh
res > > > El 2018-02-06 14:09, Bertrand Delacretaz escribió: > > On Tue, Feb 6, 2018 at 1:02 PM, Jörg Hoh wrote: > > ...Long story short: Is the loginAdministrative() method planned to be > removed? If yes, we should clearly give best practices and document how it >

JCR Observation, Type ResourceResolver & idle JCR sessions

2018-08-27 Thread Jörg Hoh
ng the type checks, 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

Re: JCR Observation, Type ResourceResolver & idle JCR sessions

2018-08-28 Thread Jörg Hoh
s bound 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

[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: [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ö

Re: [Discussion] | should buffer output in memory

2018-09-13 Thread Jörg Hoh
t; used from the 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 occas

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

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: Status of sling provisioning model & documentation of models

2018-10-11 Thread Jörg Hoh
only relevant 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

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 a

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

Re: Integration testing based on feature model

2019-07-23 Thread Jörg Hoh
nstead of 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

Re: Calling OSGi Service from JSP

2020-03-28 Thread Jörg Hoh
e type (SlingFutil) 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: 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

Registration/Unregistration of ResourceProviders always triggers ResourceChangeListeners?

2020-04-09 Thread Jörg Hoh
ing that it'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: Registration/Unregistration of ResourceProviders always triggers ResourceChangeListeners?

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

Re: Need a sitemap generator

2021-01-05 Thread Jörg Hoh
le. Any idea if > acs-aem-commons-bundle work with vanilla Apache Sling? > > the ACS AEM Commons bundle has depedencies to AEM API, so it won't work with a vanilla Sling. Jörg -- Cheers, Jörg Hoh, http://cqdump.wordpress.com Twitter: @joerghoh