Configure properties for the WebSphere MQ resource adapter
We can configure the WebSphere MQ resource adapter properties that affect the connection pool, which is used by WebSphere MQ messaging provider activation specifications.
There are properties used to configure the WebSphere MQ resource adapter used by the WebSphere MQ messaging provider:
- maxConnections
- connectionConcurrency (Setting this property only affects WebSphere Application Server 7 nodes. The property has no effect for WebSphere Application Server Version 8 or later nodes.)
- reconnectionRetryCount
- reconnectionRetryInterval
- startupRetryCount
- startupRetryInterval
These properties affect the connection pool, which is used by the WebSphere MQ messaging provider activation specifications. They do not affect the WebSphere MQ messaging provider queues, topics, or connection factories.
For further information about these properties, see Configuration of the ResourceAdapter object in the WebSphere MQ information center.
To configure the WebSphere MQ resource adapter properties, use the console to complete the following steps:
- In the navigation pane, click Resources > JMS->JMS providers to display a list of JMS providers in the content pane.
- Optional: To manage JMS resources defined at a different scope setting, change the Scope setting to the required level.
These properties only have an effect on the WebSphere MQ messaging provider objects defined at the same scope as the messaging provider and resource adapter on which they are set. So, for example, if set the max connections property to a particular setting at the server scope, only the server scoped WebSphere MQ messaging provider activation specifications are affected by this setting.
- In the Providers column of the displayed list of JMS providers, click the name of the WebSphere MQ messaging provider to work with.
- In the content pane under Additional properties, click Resource adapter properties to view the configuration page for the properties.
- Specify the required values for the properties:
- Max connections
- The maximum number of connections to a WebSphere MQ queue manager.
- Connection concurrency
- The maximum number of message-driven beans that can be supplied by each connection. Setting this property only affects WebSphere Application Server 7 nodes. The property has no effect for WebSphere Application Server Version 8 or later nodes.
- Reconnection retry count
- The maximum number of attempts made by a WebSphere MQ messaging provider activation specification to reconnect to a WebSphere MQ queue manager if a connection fails.
- Reconnection retry interval
- The time, in milliseconds, that a WebSphere MQ messaging provider activation specification waits before making another attempt to reconnect to a WebSphere MQ queue manager.
- startupRetryCount
- The default number of times to try and connect a MDB on startup, if the WebSphere MQ queue manager is not running when the application server is started.
- startupRetryInterval
- The default sleep time between startup connection attempts (in milliseconds).
- Click Apply. This defines the property to WebSphere Application Server, and enables you to browse or change additional properties.
- Save any changes to the master configuration.
- To have the changed configuration take effect, stop then restart the application server.
Subtopics
- Configure custom properties for the WebSphere MQ resource adapter
In addition to the standard properties that we can specify for the WebSphere MQ resource adapter, we can configure custom properties for WebSphere MQ resource adapter.
Related concepts
WebSphere MQ custom properties
Related tasks
Manage messages with message endpoints Configure custom properties for WebSphere MQ messaging provider JMS resources Configure an activation specification for the WebSphere MQ messaging provider
Resource adapter properties WebSphere MQ resource custom properties settings Resource adapter properties WebSphere MQ messaging provider activation specification settings