AEM Event listener - AEM 6.5 | Community
Skip to main content
AEMLearner-1989
Level 4
October 16, 2024

AEM Event listener - AEM 6.5

  • October 16, 2024
  • 3 replies
  • 777 views

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
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 16, 2024

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.

Esteban Bustamante
joerghoh
Adobe Employee
Adobe Employee
October 17, 2024

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

kautuk_sahni
Community Manager
Community Manager
November 5, 2024

@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