AEM Page Replication Event in Publisher | Community
Skip to main content
Level 3
January 22, 2025
Solved

AEM Page Replication Event in Publisher

  • January 22, 2025
  • 1 reply
  • 531 views

Hi Team,

 

When we are publishing a page, requirement is to capture Page Replication event in Publish Instance only and do some logic due to some business use case.

 

Below code works fine and capture Page replicate event in Author. but not in publish. 

Changed event.topics value as ReplicationEvent.EVENT_TOPIC as well. Still It does not work in Publisher.

 

@Component(
service = EventHandler.class,
immediate = true,
property = {
"event.topics=" + ReplicationAction.EVENT_TOPIC
}
)

 

Thanks in advance.

Best answer by Shashi_Mulugu

@arvindpandey are you using AEM on-prem or AMS or Cloud?

 

The event generated on the sending side (author) is under the topic com/day/cq/replication. The event generated on the receiving side (publish) is under the topic com/adobe/granite/replication. These are represented by the constants ReplicationAction.EVENT_TOPIC and ReplicationEvent.EVENT_TOPIC respectively.

 

 

1 reply

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
January 23, 2025

@arvindpandey are you using AEM on-prem or AMS or Cloud?

 

The event generated on the sending side (author) is under the topic com/day/cq/replication. The event generated on the receiving side (publish) is under the topic com/adobe/granite/replication. These are represented by the constants ReplicationAction.EVENT_TOPIC and ReplicationEvent.EVENT_TOPIC respectively.