Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

vmadala
Level 3
Level 3

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.?

1 Accepted Solution
Dipti_Chauhan
Correct answer by
Community Advisor
Community Advisor
4 Replies
Dipti_Chauhan
Correct answer by
Community Advisor
Community Advisor
shelly-goel
Community Advisor
Community Advisor

@vmadala You can refer this example for implementation:

https://github.com/sunilkumar1117/AEM-Sample/blob/master/acs-aem-samples-master/bundle/src/main/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)