how to listen to live copy events? | Community
Skip to main content
mohanb
Level 4
October 28, 2016
Solved

how to listen to live copy events?

  • October 28, 2016
  • 6 replies
  • 1845 views

HI

Is there a way to listen to live copy events? what topic to subscribe to? Or any other options to hook into live copy lifecycle. Any pointers will be helpful. 

Also, how can be find available/ supported topics? Is it listed anywhere in the instance?

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

There are a number of ways how you might know that a rollout has happened:

  • Wrap the rolllut into a workflow
  • Implement your custom rollout action and configure the rollout to use it. This rollout action can then perform the activity you're interested in.

Jörg

6 replies

smacdonald2008
Level 10
October 28, 2016

There are no specific events related to LiveCopy. Here is the documentation. 

https://docs.adobe.com/docs/en/aem/6-2/administer/sites/msm/msm-livecopy.html

Now you can hook into general JCR events - such as when a node is created. That is, when a new node is created as a result of a LiveCopy operation, you can have a listener perform an action. For information about JCR Events -- see: 

https://helpx.adobe.com/experience-manager/using/events.html

Hope this helps... 

Lokesh_Shivalingaiah
Level 10
October 28, 2016

Hi Mohan,

As Scott mentioned I dont see any specific listerners for live copy events. There are JCR events which you can listen to. Essentially live copy activities will do one of the JCR events.

Are you looking at any specific live copy events ??

mohanb
mohanbAuthor
Level 4
October 29, 2016

How can we know whether node got created out of live copy operation?

smacdonald2008
Level 10
October 29, 2016

You can designate a specific location in the JCR where only livecopies are created. When a node is created there - you know its a livecopy. Using JCR events - there is no way to tell that a livecopy operation occurred, 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 29, 2016

There are a number of ways how you might know that a rollout has happened:

  • Wrap the rolllut into a workflow
  • Implement your custom rollout action and configure the rollout to use it. This rollout action can then perform the activity you're interested in.

Jörg

Adobe Employee
October 31, 2016

You may also want to consider looking at the mixin types on the node.

It might help if you explain a little more about your use case and what you want to do when a rollout occurs.