Expand my Community achievements bar.

SOLVED

Publish server event for receiving replication?

Avatar

Level 4

On a publish server, is there any Sling event you can listen to for receiving replication data??

The sling ReplicationAction only seems to fire on the source server (not the target).

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Employee

Tim-

Looking at the Events web console plugin, I have a guess why this isn't working for you. The event generated on the sending side (author) is under the topic com/day/cq/replication. The event generated on the receiving side (publish) is under the topic com/adobe/granite/replication. These are represented by the constants ReplicationAction.EVENT_TOPIC and ReplicationEvent.EVENT_TOPIC respectively.

Regards,

Justin

View solution in original post

8 Replies

Avatar

Employee

Hi,

There is a ReplicationEvent generated on publish when a replication is received. I believe this was added in 5.6, but I could be wrong. It is definitely there in 6.0.

Regards,

Justin

Avatar

Level 10

If you are going to work at the JCR lvl and events - we have a how to general article for working with AEM and JCR events: http://helpx.adobe.com/experience-manager/using/events.html.

Avatar

Correct answer by
Employee

Tim-

Looking at the Events web console plugin, I have a guess why this isn't working for you. The event generated on the sending side (author) is under the topic com/day/cq/replication. The event generated on the receiving side (publish) is under the topic com/adobe/granite/replication. These are represented by the constants ReplicationAction.EVENT_TOPIC and ReplicationEvent.EVENT_TOPIC respectively.

Regards,

Justin

Avatar

Level 4

Thanks Justin - I think this is what we are looking for.

Can you please advise:  When you say "Events web console plugin" - what Console item is this?  Is this a separate plugin, and if so, where do I get it?

Kind Regards,

Tim

Avatar

Level 10

Tim Goodman_BTES wrote...

 "Events web console plugin" - what Console item is this?

http://<host>:<port>/system/console/events

Avatar

Level 4

On the Publish server we want to detect content that is published (or a Flush request potentially), and perform some additional tasks in that zone.  We don't want to create a Replication agent for Flush requests

Avatar

Level 10

Tim Goodman_BTES wrote...

On the Publish server we want to detect content that is published (or a Flush request potentially), and perform some additional tasks in that zone.  We don't want to create a Replication agent for Flush requests

 

Your use is not clear for a need. Anyhow you need to use jcr lower level or cq workflow level[1] Or own replication reciever(I won't recommend this).  An example with workflow at [2] for damassets & can modify script, config per your requirement. 

[1]   http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2012/04/event_handling_incq.html

[2]   https://www.adobeaemcloud.com/content/marketplace/marketplaceProxy.html?packagePath=/content/compani...