IBM Support

Detailed example of running IBM MQ Explorer to setup JMS Administered objects in the JNDI .bindings file and test with sample JmsJndiProducer for queue and topic

White Papers


Abstract

Detailed example of running IBM MQ Explorer to setup JMS Administered objects in the JNDI .bindings file and test with the MQ JMS sample JmsJndiProducer for putting a message into a queue and for publishing a message to a topic.

Content

+++ See attached PDF file:
Detailed example of running IBM MQ Explorer to create JNDI .bindings file_4.pdf
+ File permissions and ownership
The permissions and ownership of the Directory and .bindings file must allow read-write permission to the user "mqm" and read-execute for group and others:
$ ls -dl /var/mqm/JNDI-Directory
drwxr-xr-x 2 mqm mqm 91 Jun 26 05:52 /var/mqm/JNDI-Directory
.
$ ls -al
-rw-r--r--  1 mqm mqm 15880 Jun 23 05:56 .bindings
If the file permission / ownership are not correct, then at runtime, JMSAdmin may issue the following error, which is very vague and generic.
    Unable to bind object
 
+ tags:
Author: Angel Rivera;
+++ end +++

[{"Type":"MASTER","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m0z00000008QSAAY","label":"Application Programming-\u003EJava \/ JMS"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
14 January 2025

UID

ibm16956770