Configuring a default policy project

You can configure a default policy project for an integration server by setting the policy project name in the integration server's server.conf.yaml configuration file.

Before you begin

About this task

You can configure a default policy project to be used by an integration server, by setting the policyProjects property in the Defaults section of the integration server's server.conf.yaml configuration file, as shown in the following example. The policy project that you specify is then used when a policy is required but no policy name has been specified. The default value for the policyProject property is DefaultPolicies.

Defaults:
  #defaultApplication: ''            # Name a default application under which independent resources will be placed
  #policyProject: 'DefaultPolicies'  # Name of the Policy project that will be used for unqualified Policy references, default is 'DefaultPolicies'
  Policies:
    # Set default policy names, optionally qualified with a policy project as {policy project}:name
    #monitoringProfile: ''       # Default Monitoring profile
  Credentials:
    # Names a default credential name to be used when a more specific credential is not available for the credential type.
    #httpproxy: ''
    #jdbc: ''
    #kafka: ''
    #kerberos: ''
    #ldap: ''
    #odbc: ''
    #mq: ''
    #wsrr: ''

Procedure

To configure a default policy project for an integration server, complete the following steps:

  1. Use a YAML editor to open the server.conf.yaml file.

    You can edit the file by using the built-in YAML editor that is provided in the IBM® App Connect Enterprise Toolkit, either by double-clicking the file in the Application Development view or by right-clicking the file and selecting Open with > YAML editor. If you choose to edit the file by using a plain text editor, ensure that you do not include any tab characters (which are not valid in YAML) and use a YAML validation tool to validate the contents of your file.

    For more information about working with YAML, see http://www.yaml.org/start.html.

  2. Set the policyProject property in the Defaults section of the server.conf.yaml file, by removing the comment (#) from the start of the policyProject line and either specifying the name of an existing policy project or keeping the default value of 'DefaultPolicies', as shown in the following example:
    policyProject: 'DefaultPolicies'   # Name of the Policy project that will be used for unqualified Policy references  
    
  3. Restart the integration server. The properties that you set in the server.conf.yaml file take effect when the integration server is started. If you modify these properties again, you must also start the integration server again for the subsequent changes to take effect. For more information, see Starting an integration server.