Since the preview CAE web application and
CoreMedia Studio communicate via an internal messaging system, they
can be deployed either in the same servlet container or in separate ones. In both scenarios the
configuration of Studio is done via the
studio.previewUrlPrefix
key of the WEB-INF/application.properties
property file.
Please note that running the preview in the same container under the same origin (the origin includes protocol, host, port) is not recommended in a production environment. Security and performance is increased significantly when the two applications are deployed independently from each other.
If CoreMedia Studio and the preview are deployed together in one
servlet container, the property studio.previewUrlPrefix
is set to the path of the
preview's Spring servlet. For a project based on the standard CoreMedia DXP 8, this would be:
studio.previewUrlPrefix=/blueprint/servlet
If Studio and the preview are deployed independently, the aforementioned property must be set to the absolute URL of the preview web application. In a Blueprint related project, this could be:
studio.previewUrlPrefix=http://localhost:40081/blueprint/servlet