Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.