Configuring the Local Connection

If the connection binding type is Local, then the JVM running your application expects to find the MQ native libraries on the java.library.path. If it does not, your process fails with an MQRC_MODULE_NOT_FOUND error.

To add the MQ native libraries to the application debug configuration:

Procedure

  1. In TIBCO Business Studio, click Run > Debug Configurations.
  2. Click BusinessWorks Application > BWApplication in the left panel.
  3. Click the Environment tab in the right panel.
  4. In the Edit Environment Variable wizard, add or modify the library search path variable for your system:
    • For Linux (The entry is similar to):

      Type LD_LIBRARY_PATH in the Name field and ${env_var:RV_HOME}/lib/64:${env_var:RV_HOME}/lib:/opt/mqm/java/lib/OSGi:/opt/mqm/java/lib64:${env_var:LD_LIBRARY_PATH} in the Value field.

    • For Windows:

      Type PATH in the Name field and ${env_var:RV_HOME}/bin${system_property:path.separator}C:\Program Files (x86)\IBM\WebSphere MQ\java\lib${system_property:path.separator}${env_var:PATH} in the Value field.