send custom data to publish instance during replication | Community
Skip to main content
hari_krishna_s1
New Participant
October 16, 2015
Solved

send custom data to publish instance during replication

  • October 16, 2015
  • 6 replies
  • 1266 views

Hi,

I have installed AEM 6.0 author and publish instances in tomcat app server. Whenever something is published, i want to send some key code to publish instance during the replication. Appreciated for any suggestion

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 joerghoh

Hi,

why don't you use replication via https? That's transparent to the application and you don't need to do anything. If you are paranoid, you should be able to setup the validation of both sender and receiver certificate. But don't reinvent the wheel and write code on your own.

kind regards,
Jörg

6 replies

hari_krishna_s1
New Participant
October 16, 2015

Hi Scott,

I agree with you. But the scenario i am talking about a scenario as follows, i have installed publish instance in apache tomcat server (author instance is also installed in tomcat but in different machine). During the replication i want to add some rsa code in replication request. I want to validate the replication request with tomact(based on rsa code) before it reaches to publish instance.

New Participant
October 16, 2015

Not sure if this would work but looks like you can extend /libs/cq/replication/components/agent to create a custom replication agent.

joerghoh
joerghohAccepted solution
Employee
October 16, 2015

Hi,

why don't you use replication via https? That's transparent to the application and you don't need to do anything. If you are paranoid, you should be able to setup the validation of both sender and receiver certificate. But don't reinvent the wheel and write code on your own.

kind regards,
Jörg

Lokesh_Shivalingaiah
New Participant
October 16, 2015

I think you might have to override the replication agent at the author side and similarly you will have to find the function which writes it into JCR on publish and override the same to check the rsa code.

hari_krishna_s1
New Participant
October 16, 2015

Is there any sample logic available to override the replication agent?