IBM Support

Suggestions for modifying an IBM MQ JMS client application to use JNDI to do lookups for a ConnectionFactory and a Destination

Question & Answer


Question

You have an MQ Client application located in host-1 that uses JMS and connects directly into
a queue manager located in remote host-2, perhaps by passing connection parameters or by
hardcoding the connection data into the application.

Now you want to modify this application to use the JNDI, and do lookups for the
ConnectionFactory (connection information for the queue manager) and the Destination
(queue or topic).

You would like to get suggestions on how to add the handling of JNDI in your application.

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m0z00000008QSAAY","label":"Application Programming-\u003EJava \/ JMS"}],"ARM Case Number":"TS012527440","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"},{"Product":{"code":"SSKM59","label":"IBM MQ for HPE NonStop"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SS5K6E","label":"IBM MQ Appliance"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
28 April 2025

UID

ibm16980871