Hello,
I am working on Cloud AEM.
I am working on Event Handler to call our api on page replication.
For which I am using a ReplicationAction to know path and user details.
I have a requirement to know which is the server it is like prod/stage/dev/rde
AMS gives this info from this.slingSettingsService.getRunModes()
Where as Cloud is not returning expected values.
In servlet, I can get server url like this req.getServerName()
But Since this is my Event Listener class, I am not getting way to get server details.
Can anyone guide on this how to get server name with event listener?
Regards
Kiran