Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to Replicate Using Specific replication Agents.

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

6 Replies

Avatar

Correct answer by
Level 10

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. 

Avatar

Employee Advisor

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. 

Avatar

Level 3

Hi Smacdonald,

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

Thanks

K Chaitanya

Avatar

Level 3

Hi Kunal,

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

Thanks

K Chaitanya

Avatar

Level 10

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.

Avatar

Level 3

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