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

how to register custom replicator?

  • May 24, 2016
  • 2 replies
  • 898 views

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.
Best answer by smacdonald2008

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

smacdonald2008
smacdonald2008Accepted solution
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. 

mohanb
mohanbAuthor
May 24, 2016

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

I will implement and update the info here