Configuring the IBM MQ messaging provider with native libraries information
To connect to an IBM MQ queue manager or queue-sharing group in bindings mode, the IBM 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 IBM 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 IBM MQ messaging provider with native path information by using the command line, as described in WMQAdminCommands command documentation, 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.Procedure
What to do next
For migration purposes only, you can also specify native path information, when in an application server environment, by setting the MQ_INSTALL_ROOT WebSphere Application Server environment variable.