Skip to main content
AEMLearner-1989
Level 4
Oct 16, 2024 11:24 AM UTC

AEM Event listener - AEM 6.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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Oct 16, 2024 1:46 PM UTC

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-workflows 

 

Hope this helps.

Translate
Esteban Bustamante
joerghoh
Adobe Employee
Adobe Employee
Oct 17, 2024 6:33 PM UTC

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

Translate
kautuk_sahni
Level 9
Nov 5, 2024 2:10 PM UTC

@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!

Translate
Kautuk Sahni