Reverse Replication working when I freshly add cq:distribute prop | Community
Skip to main content
Level 3
December 3, 2021
Solved

Reverse Replication working when I freshly add cq:distribute prop

  • December 3, 2021
  • 2 replies
  • 1783 views

I am trying to demonstrate basic reverse replication on AEM 6.5.10.
Created a new reverse replication agent in author which works fine.

Created a servlet to modify page content which changes some values as well as adds the cq:distribute  property with value true.
Whenever I run the servlet and the page content get the distribute property, reverse replication works. After this If I hit the servlet again then some props change but reverse replication does not work.

When I checked the logs I found that the polling is working fine and it fetched 0 files which means there is nothing in the outbox.
Now here is the weird part -> If I delete the cq:distribute property from crx/de and run the servlet then reverse replication works.
In short: Reverse replication works only when I add the cq:distribute property to the node. If the property already exists and I change some other property then the reverse replication does not work.

 

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 Shubham_borole

@vinit_pillai - Checking, are you also clearing the cq:distribute property and saving session?

2 replies

lukasz-m
Community Advisor
Community Advisor
December 3, 2021

Hi @vinit_pillai, does your servlet also modifies/updates cq:lastModifiedDate value, every time it's changing other fields?

Maybe this documentation will be also useful for you https://helpx.adobe.com/uk/experience-manager/kb/HowToUseReverseReplication.html

Level 3
December 3, 2021

Yes, It modifies date as well as modified by value.

Shubham_borole
Community Advisor
Shubham_boroleCommunity AdvisorAccepted solution
Community Advisor
December 6, 2021

@vinit_pillai - Checking, are you also clearing the cq:distribute property and saving session?

Level 3
December 7, 2021

Hi @shubham_borole ,
I realized yesterday that we need to again set the property to false or delete it so that it can work again next time when I make it true.
Is this the proper way?
Shouldn't it be like you make it true and it will reverse replicate every time unless you make it false again?

Anyways, Thanks for Answering.