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. 1. Change sling.home variable and sling.run.modes variables of the publish instance.
  2. 2. Unpack WEB-INF/web.xml file from the AEM war file.
  3. 2. Change sling.home parameter to a different path, (absolute and relative paths are possible).
  4. 3. Change sling.run.modes to publish for the publish instance.
  5. 4. Repack the web.xml file.
  6. 5. Rename the war files, so they have different  names: e.g. one rename to aemauthor.war and the other to aempublish.war.
  7. 6. Use higher memory settings, e.g. for default AEM instances use e.g.: -Xmx3072m
  8. 7. Deploy the two web applications.
  9. 8. After Deployment stop the two web applications.
  10. 9. 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).
  11. 10. Start the two web applications again.

No comments:

Post a Comment