How to create an MQ connection factory in WebSphere

Home > Search > How-to
  by

Create the Connection Factory

  1. In the left panel of the WebSphere web console, expand Resources > JMS.
  2. Select Connection factories.
  3. In the scope drop-down selector, select the cluster.
  4. Select New.
  5. Choose WebSphere MQ Messaging Provider and select OK.
    • At Step 1: Configure basic attributes, enter the connection factory name, connection factory JNDI name, and connection factory description, select Next. The person requesting the connection factory will provide you with these details.
    • At Step 2: Select connection method, select Enter all required information into this wizard and select Next.
    • At Step 2.1: Supply queue manager details, enter the name provided by the requestor.
    • At Step 2.2: Enter connection details, enter the connection details.

If there is a single instance (not clustered)

  • Set Transport to Client.
  • Select Enter host and port information in the form of separate hostname and port values.
  • Enter a single hostname.
  • Enter a single port.
  • Enter a server connection channel.
  • Select Next.

If there are two instances (clustered)

  • Set Transport to Client.
  • Select Enter host and port information in the form of connection name list.
  • There should be two hostnames and a single port, such as mq1.example.com(5201), mq2.thrivent.com(5201)
  • Enter a single connection channel.
  • Select Next.
  1. There is no need to select Test Connection, as this often fails due to SSL not yet being configured.
  2. Select Next.
  3. Select Finish.
  4. Select Save.

 

Configure SSL

  1. In the left panel of the WebSphere web console, expand Resources > JMS.
  2. Select Connection factories.
  3. Select the connection factory you created in the prior step.
  4. Check Use SSL to secure communication with WebSphere MQ.
  5. Select Specific configuration.
  6. Select your SSL configuration.
  7. Select OK.
  8. Select Save.

 

Restart the application server for the change to take effect.

 

Verification

Ensure the connection factory and queue were bound when the application server was restarted. This will be listed in the SystemOut.log file.

[10/5/17 11:28:26:123 CDT] 00000001 ResourceMgrIm I    WSVR0049I: Binding ExampleConnectionFactoryName as jms/mq/conn/ ExampleConnectionFactoryName

[10/5/17 11:28:26:123 CDT] 00000001 ResourceMgrIm I    WSVR0049I: Binding ExampleQueueName as jms/mq/conn/ExampleQueueName

 

If there is an issue making the MQ connection, check the log files for issues. The following command can be used. This command will search every file at and below a certain directory for a certain string of data. In this example, every log file is searched with keyword “MQRC”.

Grep –Rnw '/path/to/logs/exampleCell/exampleJVM/' –ie 'MQRC'

 

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments