Skip to main content
Unnikrishnankv
Level 3
Oct 16, 2015 2:26 AM UTC
Solved

EventListener

Hello Team,

I need to create EventListener for particular component edit and delete events. How we can i create EventListener for particular component. Please help me do that ...

 

Thanks!, 

Devakrishna

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

This exact question was asked and answered - we pointed you to articles that talk about creating an Event Handler for AEM. See:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__qsh1-hi_team_i_wantt.html

You use the javax.jcr.observation.EventListener API. 

3 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

This exact question was asked and answered - we pointed you to articles that talk about creating an Event Handler for AEM. See:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__qsh1-hi_team_i_wantt.html

You use the javax.jcr.observation.EventListener API. 

Translate
Unnikrishnankv
Level 3
Oct 16, 2015 2:26 AM UTC

Shekhar_Dhiman wrote...

Hi There,

Thanks for reaching out to Adobe Community.

Please see the below doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/develop/components.html#cq:listeners

Thanks!

 

hi Shekhar , 

Thanks for your replay .. 

    how we can trigger java class by using cq listeners. is it possible ?. I have tried with servlet and ajax. is there any alternate  way to do that..

Thanks!

Devakrishna

Translate
WhoaShekhar
Level 10
Oct 16, 2015 2:26 AM UTC

Hi There,

Thanks for reaching out to Adobe Community.

Please see the below doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/develop/components.html#cq:listeners

Thanks!

Translate