The /atg/registry/webappregistry/StaticWebAppRegistry
component (class atg.service.webappregistry.StaticWebAppRegistry
) configures the registry of deployed Web applications by reading a Map of display-name=context-root
mappings or a list of Web application components from its properties file.
To use the display-name=context-root
mappings to supply Web application information, simply set the contextRootMap
property inside the /atg/registry/webappregistry/StaticWebAppRegistry
properties file. Example:
contextRootMap=\
MotorpriseJSP=Motorprise
You set the ContextRootMap
value to the value of the <display-name>
and <context-root>
tags in the application’s web.xml
file, usually located in the WEB-INF directory.
To use the list of Web application components to configure the registry, you create a separate component of class atg.service.webappregistry.WebApp
for each application, and then you list the components in the preConfiguredWebApps
property in the StaticWebAppRegistry
properties file, as shown here:
preConfiguredWebApps=\
/atg/registry/webappregistry/MotorpriseWebApp
The following example shows the properties file for the /atg/registry/webappregistry/MotorpriseWebApp
component:
MotorpriseWebApp.properties $class=atg.service.webappregistry.WebApp properties=\ display-name=Motorprise,\ appState=started,\ context-root=Motorprise,\ web-uri=web_app,\ path=d:/work/5.6/Dynamo/DSSJ2EEDemo/j2ee-apps/Motorprise