How to Replicate Using Specific replication Agents. | Community
Skip to main content
Level 3
January 11, 2016
Solved

How to Replicate Using Specific replication Agents.

  • January 11, 2016
  • 6 replies
  • 4203 views

HI ,

In my Project in Author instance we have three replication Agents . When we Activate any Page/Pages from **Site-Admin/Using Tree Activation** Page/Pages getting Activated with All the three replication Agents.  But our requirement is when we Active , Page Should not be sent to All the replication Agents . Based on the some conditions it should be sent to only one specific replication Agent.  Could you please let us know how this requirement can be implemented?. In simple terms, We want to send  Page/Pages to only one specific replication Agent (**Not to All Available Replication Agents**), when we do Activation form **Site-Admin/Using Tree Activation**.

Any Help/Pointers to implement above requirement is really Appreciated.

Thanks

K Chaitanya

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

When you configure out of the box replication agents - you cannot set complex conditions or expressions that are used to select a a specific agent, See this AEM doc topic: 

https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/replication.html#Configuring your Replication Agents

You can configure your replication agents based on a site (but not conditions)- as discussed in this community article: 

http://aemfaq.blogspot.ca/2013/05/how-to-configure-replication-agent-to.html

However - if you want to use specific conditions to select a replication agent from site admin - the best way to proceed may be to use the AEM Replication API:

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/replication/Replicator.html

This is why this API is exposed as a public API. To handle specific use cased like this one. 

6 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
January 11, 2016

When you configure out of the box replication agents - you cannot set complex conditions or expressions that are used to select a a specific agent, See this AEM doc topic: 

https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/replication.html#Configuring your Replication Agents

You can configure your replication agents based on a site (but not conditions)- as discussed in this community article: 

http://aemfaq.blogspot.ca/2013/05/how-to-configure-replication-agent-to.html

However - if you want to use specific conditions to select a replication agent from site admin - the best way to proceed may be to use the AEM Replication API:

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/replication/Replicator.html

This is why this API is exposed as a public API. To handle specific use cased like this one. 

Kunal_Gaba_
January 11, 2016

You can achieve this by creating a new user and give permissions to that user for only that particular site which you are activating. In the replication agent configuration set the Agent User Id field to the new user name.  The other two replication agents can have different user ids which will not have access to the site content. 

For more details refer the documentation shared by Scott. 

Level 3
January 14, 2016

Hi Smacdonald,

    Thank you very much . I am able to solve the issue.

Thanks

K Chaitanya

Level 3
January 14, 2016

Hi Kunal,

    Thank you very much . I am able to solve the issue.

Thanks

K Chaitanya

Lokesh_Shivalingaiah
Level 10
January 14, 2016

Hi Chaitanya,

Good to hear that you could solve the issue,  As @scott and @kunal mentioned we have multiple ways to handle this usecase, if you could mention the approach you followed as a solution here, it would help others who would have the similar requirement.

Level 3
January 14, 2016

HI Bsloki

Both @scott and @kunal  suggested same approach. I followed same . If there are any new approaches please let me know.

Thanks

k Chaitanya