Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

send custom data to publish instance during replication

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

6 Replies

Avatar

Level 2

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.

Avatar

Level 3

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 10

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.

Avatar

Level 2

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