Overriding deployed policies at run time with the overrides directory

You can override a deployed policy by putting an updated policy in the overrides subdirectory of the integration server work directory.

About this task

Policies that are deployed to an integration server are stored in the run directory for that integration server. Each integration server also has an overrides directory, which can contain policies that are read by the integration server when it is starting up. If a policy in the overrides subdirectory has the same name as a policy that is deployed in a BAR file, the policy in the overrides subdirectory takes precedence.

Procedure

To override a deployed policy at run time, complete the following steps.

  1. In the overrides subdirectory of the integration server, create a subdirectory with the name of the policy project that contains the policy that you want to override. For example, myPolicyProject.
  2. Export the policy project that contains the policy that you want to update from the IBM® App Connect Enterprise Toolkit to your file system. You need to include the file policy.descriptor.
  3. Edit the appropriate property values in the .monprofile.xml file.
  4. Save the updated .policyxml file and the policy.descriptor file to the subdirectory that you created in Step 1.
  5. Restart the integration server.