Is there anyway to publish Event handler at receiver side.? | Community
Skip to main content
vmadala
Level 3
Jun 30, 2021 4:13 AM UTC
Solved

Is there anyway to publish Event handler at receiver side.?

Hello Team,

 

I would like to write a publish event handler at receiver serve, which means I would like to register/handle an event if my publish serve receives any content from the author server.

 

Is there any way.?

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

4 replies

shelly-goel
Employee
Jun 30, 2021 4:59 AM UTC

@vmadala You can refer this example for implementation:

https://github.com/sunilkumar1117/AEM-Sample/blob/master/acs-aem-samples-master/bundle/src/main/java/com/adobe/acs/samples/events/impl/SampleSlingEventHandler.java

 

The event generated on the sending side (author) is under the topic com/day/cq/replication (ReplicationAction.EVENT_TOPIC). The event generated on the receiving side (publish) is under the topic com/adobe/granite/replication (ReplicationEvent.EVENT_TOPIC)

 

Translate
vmadala
vmadalaAuthor
Level 3
Jun 30, 2021 5:27 AM UTC
Thanks @shelly-goel.
Translate
vmadala
vmadalaAuthor
Level 3
Jun 30, 2021 5:29 AM UTC
Thanks @dipti_chauhan.
Translate