Wednesday, November 4, 2020

Content replication in AEM

Content replication in AEM


·        Replication agents are central to Adobe Experience Manager (AEM) as the mechanism used to Publish (activate) content from an author to a publish environment.

 

·        Return replication where user input (for example, form input) from the publish environment to the author environment (under control of the author environment).

 

Steps in Replication:

·        The author requests that certain content be published (activated).

 

·        The request is passed to the appropriate default replication agent.

 

·        The replication agent "packages" the content and places it in the replication queue.

 

·        The content is lifted from the queue and transported to the publish environment using the configured protocol; usually this is HTTP.

 

·        Servlet in the publish environment receives the request and publishes the received content; the default servlet is http://localhost:4503/bin/receive.

 

·        Multiple author and publish environments can be configured.

 

Here, by default below are the ports preconfigured for replication:

 

·        author environment on port 4502

·        publish environment on port 4503

 

Open http://localhost:4502/etc/replication.html



Select Agents on author or go to,

http://localhost:4502/etc/replication/agents.author.html



Select Edit and check the default configuration for Default Agent (publish)



In this dialog, we can change the settings like “Auto Trigger” the page publish on any change.


User Can click on test connection to test where the replication settings are correct on not and get the status as follows:


Testing the Replication

For Testing there should be 2 Instances of AEM :

1.     author instance running on port 4502.

2.     publish instance running on port 4503.

Now open any We-Retail Page on author instance and do some changes as follows:

 http://localhost:4502/editor.html/content/we-retail/language-masters/en/men.html

 


Now Goto, http://localhost:4502/sites.html/content/we-retail/language-masters/en and select the Men Page and select Quick Publish from menu:

 


On Successful Replication/Publication status will get updated,

 


Now you can open the same page on publish environment and the same changes will be reflected there.

 

Creating Configuration for other Instances:

 

To configure replication of content for an additional publish instance you need to create, and configure, a new replication agent:

 

1.     Open http://localhost:4502/libs/cq/core/content/welcome.html

2.     From options select “Tools”

3.     Select Replication, then Agents on author in the left panel.

4.     Select New

5.     Set the Title and Name, then select Replication Agent.

6.     Click Create to create the new agent.

7.     Double-click the new agent item to open the configuration panel.

8.     Click Edit 


·         In the Settings tab:

·         Activate Enabled.

·         Serialization Type Default

·         Enter a Description.

·         Set the Retry Delay to 60000.

·         Leave the Serialization Type as Default.

·         In the Transport tab:

·         Enter the required URI for the new publish instance; for example,
    
http://localhost:4504/bin/receive.

·         Enter the site-specific user account used for replication.

·         You can configure other parameters as required.

9.     Click OK to save the settings.



If you have another instance running on Port 4504, you can test the connection.

 

 

 


No comments:

Post a Comment