Thanks Ove. That makes sense if configuration is same. My use case is slightly different which is without making my service aware of configurations, I want it to pick two different set of configurations. In your solutions then service factory should first figure out and load the correct configuratio...
Use case is in my first post. I was not talking about changing runmodes above since this can not be done, what I meant was using the same api which picks the right folder based on current runmodes. I was wondering if there is a method which takes string array (runmodes) and give me the configuration...
Thanks Ameesh. I know CQ ootb runmode works that way and it is fixed. I was more looking for hooks/extensions to change it at run time. I would assume folders are to be picked by some apis and was hoping to use that or extend it. Also I don't want configuration to be changed by another code because ...
CQ ConfigAdmin picks a folder based on the runmode like if runmode was author & dev, it will pick config.author.dev folder automatically. I have a usecase where-in my custom service is supposed to use two different set of properties based on whether its day or night. I know we could have an if-else ...
You could see all the JSPs being invoked from recent requests under system console. By default, this just captures the last 20 requests but is configurable.From maintainability point of view, I would suggest to use specific selector to invoke a particular jsp/code.Do let me know if you have any othe...
Has anybody tried configuring CQ5.6.1 with Logback which provides obvious benefits over Log4J. SL4J provides inbuilt support for logback and CQ5.6.1 logging is based on SL4J, so I guess it should be achievable. Also there are certain use cases where-in we need to provide unique request ID to all the...
No sure if you got my problem right, might be I was not able to explain properly.Here you go!No matter you upload an image from your local machine or assign it from DAM, if you look at the page source the path of the image will be something like "/content/geometrixx-media/en/events/the-lineup-you-ve...
Adaptive image component creates following path for the image being used: /content/geometrixx-media/en/events/the-lineup-you-ve-been-waiting-for/jcr:content/article-content-par/adaptive_image.adapt.620.high.jpgConsider following authoring scenarios for a page where 3 adaptive image components have b...
Component will always be used in a template. So you can make your use case work by just creating designs for the template where-in you want to use this component. This is not a good idea to have user update /etc/designs as could lead to unwanted errors.