Configuring the WebSphere MQ messaging provider with native libraries information
To connect to a WebSphere® MQ queue manager or queue-sharing group in bindings mode, the WebSphere MQ messaging provider needs to know where to load native libraries from. This information is known as native path information. The way native path information is set depends on whether the connection is established in an application client or in an application server environment.
About this task
If you are running in a client environment, use launchClient to start a client application. In the system property MQ_INSTALL_ROOT enter the name of a directory that contains the WebSphere MQ native libraries, in a subdirectory of java/lib or java/lib64 depending on whether you are using 32 bit or 64 bit native libraries. For example, on Linux® specify ./launchClient.sh myappclient.ear -CCDMQ_INSTALL_ROOT=/opt/mqm/.
If you are running in an application server environment, you can configure the WebSphere MQ messaging provider with native path information by using the command line, as described in WMQAdminCommands command group for the AdminTask object, or you can use the administrative console to complete the following steps:
java.library.path
custom property directly. You cannot make direct updates with the
WebSphere MQ native library path dialogue box within the
administration console. Make direct updates using the -Djava.library.path
JVM
argument. On AIX®, make direct updates with the
LD_LIBRARY_PATH
environment variable. Use the IBM JDK if you use the administrative console to reference the paths.