Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

how to register custom replicator?

Avatar

Level 4

Hi

I am trying to implement custom replicator using Replicator class. Kindly point to steps to register my custom java replicator for the replication process.

I am aware of steps where we need to create custom replication agent using new replication agent screen, but how to be bind java class to particular agent.

TIA

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can use dependency injection and use the com.day.cq.replication.Replicator API. See this AEM Code example - 

https://github.com/viveksachdeva/elasticsearch-cq/blob/master/bundle/src/main/java/com/vivek/CustomT...

We currently do not have a community article for this use case. However - we have added it to the list. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You can use dependency injection and use the com.day.cq.replication.Replicator API. See this AEM Code example - 

https://github.com/viveksachdeva/elasticsearch-cq/blob/master/bundle/src/main/java/com/vivek/CustomT...

We currently do not have a community article for this use case. However - we have added it to the list. 

Avatar

Level 4

Does using this dependency injection override the default replicator being used? 

I will implement and update the info here