Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

How to Programmatically rollout from blueprint to live copies in AEM as cloud service ?

Avatar

Level 1
final RolloutManager.RolloutParams params = new RolloutManager.RolloutParams();
params.master = masterPage;
params.targets = targets;
params.isDeep = false;
params.reset = false;
params.trigger = RolloutManager.Trigger.ROLLOUT;
LOGGER.info("RolloutParams {}.", params.toString());
rolloutManager.rollout(params);


This approach is not working for me, no errors as well
1 Accepted Solution

Avatar

Correct answer by
Level 3
4 Replies

Avatar

Level 3

To programmatically rollout from a blueprint to live copies in AEM as a Cloud Service, the process differs slightly compared to older versions of AEM.

Your current approach using RolloutManager may not work as expected in AEM as a Cloud Service because some of the internal APIs and behaviors are now optimized for the cloud’s distributed architecture.

 

The LiveRelationshipManager API is the preferred way to manage blueprint-to-live copy relationships programmatically. https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...

Avatar

Level 1

Hey, there was a permission issue for the service user I was using to get resourceResolver, my approach is working as expected

Avatar

Correct answer by
Level 3

Please try this - https://medium.com/adobetech/aem-bulk-sites-creation-live-copies-automation-using-wcmcommand-servlet...

I have not tried in AEM as a cloud service though.

Avatar

Level 1

Hey, there was a permission issue for the service user I was using to get resource Resolver, my approach is working as expected