Changing connection details for SAP adapters
SAP nodes can get SAP connection details from either the adapter component or a policy. By using a policy, you can change the connection details for adapters without the need to redeploy the adapters. To pick up new values when a policy is created or modified, you must restart the integration server where the adapter is deployed.
Before you begin
- Read WebSphere Adapters nodes and Overriding properties at run time with policies for background information.
About this task
Use the SAP Connection policy to change connection details for an SAP adapter. The SAP node reads all connection properties from the adapter component that it is configured to use. If a SAP Connection policy exists with the same name as the node's Primary adapter component property, the node uses the values that are defined in that policy to override the corresponding properties from the adapter. If any properties on the policy are set to an empty string, the values that are configured in the .inadapter or .outadapter file are used. The properties of the SAP policy are described in SAP Connection policy (SAPConnection).
Procedure
To use a policy to change connection details at run time, complete the following steps:
- Use the Policy editor in the IBM® App Connect Enterprise Toolkit to create a policy and select SAP Connection as the policy type (see Creating policies with the IBM App Connect Enterprise Toolkit).
- Ensure that the name of the policy is the same as the name that is specified by the Primary adapter component property on the SAPInput or SAPRequest node (without the .inadapter or .outadapter suffix).
- Set the appropriate properties in the policy for the settings
that you want to use at run time. The default value for most properties in the policy is an empty string, which indicates that behavior is controlled by the .inadapter or .outadapter file for those properties. For more information, see SAP Connection policy (SAPConnection).
- Deploy this policy in the default policy project for the
integration server before you start the associated message flow.
For information about configuring a default policy project, see Configuring a default policy project.