It is possible to have each element of Alfresco Content Services, including PrizmDoc® for Java, installed across separate Tomcat instances.

The example configuration changes below are based on our ACS docker-compose.yml example. PrizmDoc® for Java’s content handler and repository AMP need to be configured for this to work properly.

Configuring the Alfresco Content Repository URL in PrizmDoc® for Java

PrizmDoc® for Java needs to know how to contact the Alfresco Content Repository. Make the following configuration changes to the PrizmDoc® for Java tomcat instance.

  1. Install PrizmDoc® for Java Alfresco in a tomcat instance if you have not already done so.

  2. Open webapps/virtualviewer/WEB-INF/web.xml and add the following <init-param> to the <servlet> section:

     <init-param>
     	<param-name>alfrescoBaseUrl</param-name>
     	<param-value>http://alfresco:8080/alfresco</param-value>
     </init-param>
    
  3. Change the URL in <param-value> to the URL where alfresco-content-repository can be reached.

  4. Restart the Tomcat instance.

Configure PrizmDoc® for Java’s URL in Alfresco Content Repository AMP

The PrizmDoc® for Java snowbound-repo-X.X.AMP in the alfresco-content-repository instance needs to be configured to contact the PrizmDoc® for Java AJAX interface.

  1. If you have not already done so, apply the snowbound-repo-X.X.AMP file to the Alfresco Content Repository Tomcat instance.

  2. Open webapps/alfresco/WEB-INF/classes/alfresco/module/snowbound-repo/alfresco-global.properties.

  3. Look for the line containing the property snowbound.cache.servers=.

Set this property to the URL where your PrizmDoc® for Java AJAX Servlet can be reached. For example, snowbound.cache.servers=http://vv-alfresco:8080/virtualviewer/AjaxServlet.

  1. Restart the Tomcat instance.