Expand my Community achievements bar.

SOLVED

How to read the replication events from outside java standalone application?

Avatar

Level 1

Our Requirement:

 

How to get the events when we click on Activate/Replicate Button from outside of AEM.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Write a Sling or JCR event listener for the events you are looking to capture.

 

The listener class will be called every time the relevant events are fired. Within the class you can write the events to some node and keep pinging the node from your standalone java app at regular intervals to see the captured events. Or else you can call a servlet hosted in your standalone app from the event listener every time the event occurs.

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

Write a Sling or JCR event listener for the events you are looking to capture.

 

The listener class will be called every time the relevant events are fired. Within the class you can write the events to some node and keep pinging the node from your standalone java app at regular intervals to see the captured events. Or else you can call a servlet hosted in your standalone app from the event listener every time the event occurs.