내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

AEM Page Replication Event in Publisher

Avatar

Level 3

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.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

@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 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

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