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.
- In the WebSphere admin console, expand Resources > JMS.
- Select Queues.
- In the scope drop-down selector, select a scope.
- Select New.
- Choose WebSphere MQ Messaging Provider and select OK.
- Enter the queue name, queue JNDI name, and queue MQ name and select Next.
- Select OK.
- Select Save.
In this example, a queue named QUEUE01 was created.
Note that the queue will be written to the resources.xml file.