Using System Preferences

TIBCO ActiveMatrix Policy Director Governance Proxy Service Management offers a set of command line options to add, modify, or delete system preferences. You can use the system preferences to customize a proxy application. System Preferences can only be changed using CLI. By default, the data files, properties file, and the WSDL file required to change the system preferences are located at <TIBCO-HOME>\pd\1.2\scripts\psm. The <TIBCO-HOME>\pd\1.2\scripts\psm\build.xml file contains the commands used to make changes to proxy applications. Sample proxy applications are available for your reference at <TIBCO-HOME>\PD\1.2\Samples\proxyapp. You can customize the samples to suit your needs.

Adding or Modifying System Preferences

Use the -ant command and the commands from the <TIBCO-HOME>\pd\1.2\scripts\psm\build.xml file to make changes to the system preferences. For example, if you are running the sample application for SOAP/HTTP, open the command prompt from <TIBCO-HOME>\pd\1.2\scripts\psm. and run the following command to add or update system preferences:

ant -DdataFile="cli_data_http.xml" -DdataFile.properties="cli_data_http.properties-template" -DwsdlFile="path_to_wsdl_file" addOrUpdateSystemPreferences

Deleting System Preferences

You can delete a system preference by using the -ant command and the commands from the <TIBCO-HOME>\pd\1.2\scripts\psm\build.xml file. For example, if you are running the sample application for SOAP/HTTP, open the command prompt from <TIBCO-HOME>\pd\1.2\scripts\psm, and run the following command to delete the system preferences:

ant -DdataFile="cli_data_http.xml" -DdataFile.properties="cli_data_http.properties-template" -DwsdlFile="path_to_wsdl_file" deleteSystemPreference

Note: If you have modified the location or the name of the data file, properties file, or the WSDL file, remember to make those changes in the commands.