Expand my Community achievements bar.

rachanam1547401
rachanam1547401
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi Gaurav,Thanks for your reply. I already have SSI implemented which is similar to SDI and it has it's own challenges of invalidating SSI snippets on dispatcher and one of the reason, we are looking for simple solution like TTL.I will try customising ACS code and will update here. Once again thanks...

    Type

    Questions

    Views

    2.0K

    Like

    1

    Replies

    0
  • anjalishyamsundar​  Hi yeah you can try JCR Events but I didn't use it because it's not cluster safe and very low level, requires lot of filtering in the code before we reach to interested event.  I am also not using osgi annotations so that's another blocker for me to go for JCR Events. 

    Type

    Discussions

    Views

    5.6K

    Like

    1

    Replies

    0
  • Hi All,I am trying to implement TTL using acs aem commons and it's working fine if I configure it based on paths(Max Age) option.I was looking for something if it has TTL configuration available per resourceType or template based?  Has anyone tried this thing.Having resourceType based TTL can be hel...

    Type

    Questions

    Views

    2.6K

    Like

    1

    Replies

    3
  • Hi Arun,Many thanks for the help, I replaced maven scr plugin with OSGI annotations plugin and looks like I am able to get the repository now but I am getting exception when I try to register event handler using observationManager object.It throws exception on following line.observationManager.addEv...

    Type

    Discussions

    Views

    5.6K

    Likes

    0

    Replies

    3
  • Hi Arun,Thanks for it.I have written similar code as you, the only difference I can see is, you are using @Reference for SlingRepository from hereimport org.osgi.service.component.annotations.Reference;  while I am using import org.apache.felix.scr.annotations.Reference;Can you please also share you...

    Type

    Discussions

    Views

    5.6K

    Likes

    0

    Replies

    5
  • Hi Arun,thanks for the message.Please find imports which I am using.import org.apache.felix.scr.annotations.Reference;import org.apache.sling.jcr.api.SlingRepository;import org.osgi.service.component.ComponentContext;import org.osgi.service.component.annotations.Component;import org.slf4j.Logger;imp...

    Type

    Discussions

    Views

    7.0K

    Likes

    0

    Replies

    7
  • Yes but it throws NP Exception because it doesn't get access to repository so when it tries to access .loginService on null object, it throws NPEThanks,Rachna

    Type

    Discussions

    Views

    7.0K

    Likes

    0

    Replies

    9
  • Thanks Arun,I have tried above option and after deploying it to 6.4,  seems like I am getting null pointer exception when I am trying to get the session using repository.loginService("readService", null); and getting null value for the repository.I have initialised repository using following line.@R...

    Type

    Discussions

    Views

    7.0K

    Likes

    0

    Replies

    11
  • Thanks both!JCR Events has an issue when it comes to getting admin session, it's not allowing to get session using standard sys users way, and it requires to use deprecated method repository.loginAdministrative(null) & whitelisting the bundle to get the session;I was thinking to go for higher level ...

    Type

    Discussions

    Views

    7.0K

    Likes

    0

    Replies

    13
  • Hi,We have various event handlers which are not working in 6.4 since various attributes(resourceChangedAttributes etc.) are removed from Sling Events.  I was wondering if Adobe I/O Event handling can be a potential solution??  Has anyone tried this ?Thanks,Rachna

    Type

    Discussions

    Views

    8.3K

    Likes

    0

    Replies

    17
Top badges earned by rachanam1547401
Customize the badges you want to showcase on your profile