Sun Java System Delegated Administrator 6.4 Administration Guide

Deploying a Customized Configuration File

When you configure Delegated Administrator with the config-commda program, config-commda places the configuration files in a standard location for configuration data in the Delegated Administrator installation directory. The config-commda program then deploys the configuration files to the application repository of the Web container where you have deployed Delegated Administrator.

Thus, the deployed location of the configuration files varies, depending on which Web container you are using.

At runtime, Delegated Administrator uses the property values of the configuration files in their deployed locations——that is, in the Web container repository to which Delegated Administrator has been deployed.

To customize a configuration file, you will take these steps:

  1. Edit the original configuration file located in the Delegated Administrator installation directory.

  2. Use a script provided by Delegated Administrator to redeploy the configuration file to the Web container.

When you customize a configuration file, the new values do not take effect until the file has been redeployed to the Web container.

The remainder of this section describes the following topics:

Original (Standard) Locations of the Configuration Files

When Delegated Administrator is configured (after you run the config-commda program), the configuration files are located in the following directories:

Deployed Locations of the Configuration Files

After you run the config-commda program, the configuration files are deployed to the following locations, depending on which Web container you have chosen to deploy Delegated Administrator.

Deployed Location of Delegated Administrator Server File (resource.properties)

The resource.properties file is deployed to one of the following default locations:

Web Server 6.x

/opt/SUNWwbsvr/https-hostname/webapps/https-hostname \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet
Web Server 7.x

/var/opt/SUNWwbsvr7/https-hostname/webapps/hostname \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet
Application Server 7.x

/var/opt/SUNWappserver7/domains/domain1/server1 \
/applications/j2ee-modules \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet
Application Server 8.x

/var/opt/SUNWappserver/domains/domain1 \
/applications/j2ee-modules \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet

Deployed Location of Delegated Administrator Console Configuration Files

The following files are deployed to the same default location:

These properties files are deployed to one of the following default locations, depending on the Web container you have chosen to deploy Delegated Administrator:

Web Server 6.x

/opt/SUNWwbsvr/https-hostname/webapps/https-hostname \
/da/WEB-INF/classes/com/sun/comm/da/resources
Web Server 7.x

/var/opt/SUNWwbsvr7/https-hostname/webapps/hostname \
/da/WEB-INF/classes/com/sun/comm/da/resources
Application Server 7.x

/var/opt/SUNWappserver7/domains/domain1/server1 \
/applications/j2ee-modules \
/Delegated_Administrator/WEB-INF \
/classes/com/sun/comm/da/resources
Application Server 8.x

/var/opt/SUNWappserver/domains/domain1 \
/applications/j2ee-modules \
/Delegated_Administrator/WEB-INF \
/classes/com/sun/comm/da/resources

ProcedureTo Deploy a Customized Configuration File

  1. Log in as (or become) root and go to the following directory:

    /opt/SUNWcomm/sbin

  2. Run the appropriate deploy script to redeploy your customized configuration file to the Web container used by Delegated Administrator.

    You must redeploy the configuration file to the Web container where you deployed Delegated Administrator the last time you ran the Delegated Administrator configuration program (config-commda).

    Use the deploy script that applies both to your customized configuration file and to the correct Web container.

    For example, to redeploy the resource.properties file to Web Server 6, run this command:


    # ./config-wbsvr-commcli
    

    For a list of the deploy scripts, see Configuration File Deploy Scripts.

Configuration File Deploy Scripts

There are two deploy scripts for each Web container. One script deploys the Delegated Administrator server files. The other deploys Delegated Administrator console files:

The deploy scripts are as follows:

Web Server 6
  • Deploy script for Delegated Administrator server file (resource.properties):

    config-wbsvr-commcli

  • Deploy script for Delegated Administrator console files:

    config-wbsvr-da

To run the scripts, enter these commands:


# ./config-wbsvr-commcli
# ./config-wbsvr-da
Web Server 7.x
  • Deploy script for Delegated Administrator server file (resource.properties):

    config-wbsvr7x-commcli

  • Deploy script for Delegated Administrator console files:

    config-wbsvr7x-da

To run the scripts, enter these commands:


# ./config-wbsvr7x-commcli
# ./config-wbsvr7x-da
Application Server 7.x
  • Deploy script for Delegated Administrator server file (resource.properties):

    config-appsvr-commcli

  • Deploy script for Delegated Administrator console files:

    config-appsvr-da

To run the scripts, enter these commands:


# ./config-appsvr-commcli deploy
# ./config-appsvr-da deploy

You must use the argument deploy with these commands.

Application Server 8.x
  • Deploy script for Delegated Administrator server file (resource.properties):

    config-appsvr8x-commcli

  • Deploy script for Delegated Administrator console files:

    config-appsvr8x-da

To run the scripts, enter these commands:


# ./config-appsvr8x-commcli deploy
# ./config-appsvr8x-da deploy

You must use the argument deploy with these commands.