Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

AEM Event listener - AEM 6.5

Avatar

Level 5

We currently have an event listener configured for /content/dam that listens for metadata changes. However, we are experiencing performance issues when an author updates multiple properties and clicks the save button, as the event listener is triggered for each updated property. Is there any way to get all the updated properties once click on save button instead of multiple calls.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

Hi, 

Firstly, OSGi Events are deprecated, instead, you should use ResourceChangeListeners. Please read this blog about how this could increase your performance: https://cqdump.joerghoh.de/2022/02/03/the-deprecation-of-sling-resource-events/

 

Also, If you are using AEMaaCS, please explore if this works for you: https://experienceleague.adobe.com/en/docs/experience-manager-learn/assets/configuring/auto-start-wo... 

 

Hope this helps.



Esteban Bustamante

Avatar

Employee Advisor

What type of event listener do you use? JCR Observation listener or Sling ResourceChange listener? And can you share the event handler you implemented?

Avatar

Administrator

@AEMLearner-1989 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni