How can we trigger transport handler in publisher when any pages are replicated. | Community
Skip to main content
March 19, 2024
Solved

How can we trigger transport handler in publisher when any pages are replicated.

  • March 19, 2024
  • 3 replies
  • 836 views

 

We have created our custom akamai flush agent, which should het triggered when we publish any page

http://localhost:4503/etc/replication/agents.publish/akamai-flush-agent.html

Test connection of akamai flush agent is successful but it is not getting triggered when we publish any page from author to publish instance.

Use Case - we need to get the page path in AkamaiTransportHandler.java in publisher instance which is getting replicated from author. 

We have followed the documentation given in this https://aem.design/blog/2021/04/25/creating-akamai-flush-agent.

 

 

 

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 TarunKumar

Hi @sangramt ,

Please make sure you have dispatcher flush agent setup also along with Akamai flush set up. Akamai will pull content from dispatcher if its on top of dispatcher so in case flush set up is not done on dispatcher you will still see stale content.
Also when you do test connection check the post url where hit is going on Akamai and look for the correct access token provided by DevOps team.


THanks
Tarun

3 replies

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
March 19, 2024

Hi @sangramt ,

Please make sure you have dispatcher flush agent setup also along with Akamai flush set up. Akamai will pull content from dispatcher if its on top of dispatcher so in case flush set up is not done on dispatcher you will still see stale content.
Also when you do test connection check the post url where hit is going on Akamai and look for the correct access token provided by DevOps team.


THanks
Tarun

Imran Khan
Community Advisor
Community Advisor
March 19, 2024
AMANATH_ULLAH
Community Advisor
Community Advisor
March 19, 2024

@sangramt 

Additionally, You can also try using AEM preprocessor to clear cache while replication.

Please find the below link for reference

https://aem4beginner.blogspot.com/aem-preprocessor

Amanath Ullah