Set the native library path in WebSphere Application Server traditional Version 9.0
If you deploy the Java Platform, Enterprise Edition (Java EE) database logger application on WebSphere Application Server traditional Version 9.0, and we want to use bindings mode connections between the application and IBM MQ, we must configure the IBM MQ messaging provider with the location of the IBM MQ native libraries on the system.
About this task
If we do not set the native library path in the application server, you might receive the following error message in the WebSphere Application Server traditional Version 9.0 system out log:A connection could not be made to WebSphere MQ for the following reason: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]Use the WebSphere Application Server traditional Version 9.0 administrative console to complete the following steps:
Procedure
- In the navigation pane, expand Resources > JMS > JMS Providers.
- Select the IBM MQ messaging provider that is at the correct scope for the connection factory or activation specification that creates the bindings mode connection. Note: Native path information at Server scope is used in preference to native path information at higher scopes, and native path information at Node scope is used in preference to native path information at Cell scope.
- Under General Properties, in the Native library path field, enter the full name of the directory that contains the IBM MQ native libraries. For example, on Linux enter /opt/mqm/java/lib. Enter only one directory name.
- Click OK. Once the path is set, we should save the changes to the master configuration for the changes to take effect.
- Restart the application server to refresh the configuration.
- Required: Restart the application server a second time to load the libraries.
Parent topic: Installing the Java EE database logger for MFT
Related tasks