how to register custom replicator? | Community
Skip to main content
mohanb
Level 4
May 24, 2016
Solved

how to register custom replicator?

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 24, 2016

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/CustomTransportHandler.groovy

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

2 replies

mohanb
mohanbAuthor
Level 4
May 24, 2016

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

I will implement and update the info here

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 24, 2016

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/CustomTransportHandler.groovy

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

Translate