April 19, 2020
Estimated Post Reading Time ~

How to install two Instances of AEM on the same Application Server

For demonstration purposes it can be appropriate to install author and publish instance in one application server. For that do the following:

1. Change sling.home variable and sling.run.modes variables of the publish instance.
3. Unpack WEB-INF/web.xml file from the AEM war file.
4. Change sling.home parameter to a different path, (absolute and relative paths are possible).
5. Change sling.run.modes to publish for the publish instance.
6. Repack the web.xml file.
7. Rename the war files, so they have different names: e.g. one rename to aemauthor.war and the other to aempublish.war.
8. Use higher memory settings, e.g. for default AEM instances use e.g.: -Xmx3072m
9. Deploy the two web applications.
10. After Deployment stop the two web applications.
11. In both author and publish instances assure that in the sling.properties files the property felix.service.urlhandlers=false is set to false (default is that it is set to true).
12. Start the two web applications again.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.