The deployed adapter running in the server requires the same dependency libraries as it does in IBM® Integration Designer to process requests. The method for adding these library files depends on the mode of the adapter deployment: deployed as a stand-alone adapter; or embedded in the EAR file.
In the test environment, the tools will automatically configure the required dependency libraries for you except when native libraries are used, for example, with the WebSphere Adapter for SAP Software or the WebSphere Adapter for JDBC, if using a Type 2 driver that uses native libraries.
For a production environment or testing on a remote server, however, you must add references to the dependency libraries. The following sections show you how to configure the dependency libraries for adapters with either stand-alone deployment or EAR deployment.
The dependency libraries may be added to the stand-alone deployed adapter either during initial deployment of the RAR file or by configuring the adapter properties after it has been deployed.
To set the values during initial deployment of the RAR file, from the navigation of the administrative console, select Resources > Resource Adapters > Resource adapters. Install the adapter and, afterward, add the paths to the Class path and Native path sections, before saving your configuration.
The class path is used to point to JAR files and the native path is used to point to folders containing native libraries, such as *.dll and *.so.
If a native library is dependent on other native libraries, the dependent libraries must be configured on the LIBPATH of the JVM hosting the application server (rather than on the native path) in order for that library to load successfully. You should configure an environment entry by selecting Servers > Application Servers > server_name > Java and Process Management > Process Definition > Environment Entries (where server_name is the name of the server; for example, server1). On the Environment Entries page, create a new environment entry to specify the LIBPATH of the JVM.
To set the dependency library path files after the adapter has been installed on the server, use the administrative console to modify the values for the adapter.
From the navigation of the administrative console, select Resources > Resource Adapters > Resource adapters. Select the installed adapter and, afterward, add the paths to the Class path and Native path sections before saving your configuration.
If the dependency libraries can be loaded by the application, then you do not need to take any further steps. The dependency libraries are included in the connector module.
However, when native libraries are used, the dependency libraries are added as WebSphere shared libraries. You define the shared library containing external dependencies and associate them with the server.
To use the administrative console to add the dependency libraries as a shared library, follow these steps.
If a native library is dependent on other native libraries, the dependent libraries must be configured on the LIBPATH of the JVM hosting the application server (rather than on the native library path) in order for that library to load successfully. You should configure an environment entry by selecting Servers > Application Servers > server_name > Java and Process Management > Process Definition > Environment Entries (where server_name is the name of the server; for example, server1). On the Environment Entries page, create a new environment entry to specify the LIBPATH of the JVM.