FreeKB - Add an MQ queue in WebSphere
Add an MQ queue in WebSphere

Home > Search


Before setting up JMS (Java Message Service) components in WebSphere, such as a queue and connection factory, if you are not familiar with how a Java application gets a message from MQ or puts a message to MQ, you may first want to check out our MQ Getting Started article.

This assumes an MQ Server is already setup with a queue manager and local queue. Follow these steps to add the MQ queue in WebSphere.

  1. In the WebSphere admin console, expand Resources > JMS.
  2. Select Queues.
  3. In the scope drop-down selector, select a scope.
  4. Select New.
  5. Choose WebSphere MQ Messaging Provider and select OK.
  6. Enter the queue name, queue JNDI name, and queue MQ name and select Next
  7. Select OK.
  8. Select Save.

In this example, a queue named QUEUE01 was created.

 

  1. Select the newly created queue.
  2. Select IBM MQ Queue Connection Properties.
  3. Provide the hostname, port, channel, username and password used to connect to the queue. The runmqsc command can be used to ensure the channel exists, to determine the port the channel is listening on, and to ensure the user has access to the channel (check the MCAUSER option). 
  4. Select OK.

 

Note that the queue will be written to the resources.xml file.



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 5c868 in the box below so that we can be sure you are a human.




Comments