Administer resources for the WebSphere MQ JMS provider
Overview
WebSphere MQ provides support for JMS, and can be configured as the JMS provider for your WAS instance. Use this JMS provider in either of these cases:
- You migrated JMS applications to WAS V5 from a previous release. The WAS migration tools migrate JMS resources to the generic JMS provider. After you migrate the JMS resources, map them to the WebSphere MQ JMS provider.
- You purchased a full license for WebSphere MQ for iSeries V5.3. This provider does not support the WebSphere MQ that you can install as part of WAS V5. If you do not purchase a full license for WebSphere MQ for iSeries V5.3, use the embedded WebSphere JMS provider.
To configure the WebSphere MQ JMS provider, follow these steps:
Purchase and install WebSphere MQ for iSeries V5.3. This JMS provider does not support earlier versions of MQSeries for iSeries. You must install these licensed programs:
- 5724B41: WebSphere MQ for iSeries 5.3
- 5639C34: WebSphere MQ clases for Java and JMS 5.3
If you want to use the JMS publish/subscribe messaging model with the WebSphere MQ JMS provider, provide a publish/subscribe broker. Use WebSphere MQ Event Broker or WebSphere MQ Integrator. These products must be installed on a non-iSeries workstation machine. For information on these products, see the corresponding Web site:
Set the MQJMS_LIB_ROOT variable.
- Start the administrative console.
- Expand...
Environment | Manage WebSphere Variables- Specify the node scope and click Apply.
- Click MQJMS_LIB_ROOT.
- Specify this value for the variable: /QIBM/ProdData/mqm/java/lib.
- Click Apply.
You must restart the application server for this change to take affect.
Before you can configure resources for the WebSphere MQ JMS provider, perform these steps:
- Configure and start a queue manager for WebSphere MQ.
- If you are using the client transport type for your connection factories, run the Create MQ Channel (CRTMQMCHL) command to define a server-connection channel for the WebSphere MQ queue manager.
- Run the Start MQ Command Server (STRMQMCSVR) command to start the command server for the WebSphere MQ queue manager.
- Run the Start MQ Listener (STRMQMLSR) command to start a listener for the WebSphere MQ queue manager.
See the WebSphere MQ for iSeries V5.3 documentation for instructions on configuring these resources.
After you install WebSphere MQ, you can configure resources for the provider.
Configure WebSphere MQ JMS resources
To configure a WebSphere MQ JMS connection factory, follow these steps:
- Start the administrative console.
- Expand...
Resources | WebSphere MQ JMS Provider- Click WebSphere MQ Queue Connection Factories or WebSphere MQ Topic Connection Factories.
- Click New.
- Specify a name and a JNDI name for the resource. You can also specify additional optional properties on this page.
The CCSID and XA Enabled properties can only be specified if Transport Type property is set to client.
- Click Apply.
- You can configure these additional properties for the connection factory:
- Connection Pool
- Session Pools
- Save the configuration.
To configure a WebSphere MQ JMS destination, follow these steps:
- Start the administrative console.
- Expand...
Resources | WebSphere MQ JMS Provider- Click WebSphere MQ Queue Destinations or WebSphere MQ Topic Destinations.
- Click New.
- Specify a name and a JNDI name for the resource. You can also specify additional optional properties on this page.
- For a queue destination, specify a base queue name.
- For a topic destination, specify a base topic name.
- Click OK.
- Save the configuration.
Modify WebSphere MQ JMS resources
To modify a WebSphere MQ JMS resource, follow these steps:
- Start the administrative console.
- Expand...
Resources | WebSphere MQ JMS Provider- Click the link for the type of resource that you want to modify:
- WebSphere MQ Queue Connection Factories
- WebSphere MQ Topic Connection Factories
- WebSphere MQ Queue Destinations
- WebSphere MQ Topic Destinations
- Click the name of the resource that you want to modify.
- Make your changes and click OK.
- Save the configuration.
Remove WebSphere MQ JMS resources
To remove a WebSphere MQ JMS resource, follow these steps:
- Start the administrative console.
- Expand...
Resources | WebSphere MQ JMS Provider- Click the link for the type of resource that you want to remove:
- WebSphere MQ Queue Connection Factories
- WebSphere MQ Topic Connection Factories
- WebSphere MQ Queue Destinations
- WebSphere MQ Topic Destinations
- On the page for the type of resource, select the checkbox for the resource that you want to remove.
- Click Delete.
- Save the configuration.
Configure WebSphere MQ JMS connection pooling
If WebSphere MQ is configured as your JMS provider, you can use the extended messaging service to enable connection pooling for the WebSphere MQ JMS provider. To configure WebSphere MQ JMS connection pooling, follow these steps:
- Start the administrative console.
- Expand...
Servers | Application Servers- Click the name of the application server for which you want to configure WebSphere MQ JMS connection pooling.
- Click Message Listener Service properties.
- Click Custom Properties and add these properties:
- Name: mqjms.pooling.threshold
Value: The maximum number of unused connections in the pool.- Name: mqjms.pooling.timeout
Value: The timeout in milliseconds for unused connections in the pool.
- Click OK.
- Save the configuration.
See also
- WebSphere MQ queue connection factory settings
- WebSphere MQ topic connection factory settings
- WebSphere MQ queue settings
- WebSphere MQ queue settings (MQ Config)
- WebSphere MQ topic settings
- Configure WebSphere MQ JMS resources
- Modify WebSphere MQ JMS resources
- Remove WebSphere MQ JMS resources
- Configure WebSphere MQ JMS connection pooling