Creating a WebSphere MQ messaging provider queue connection factory
To create a WebSphere MQ messaging provider queue connection factory, follow this procedure on the WebSphere Commerce server.
Procedure
- In the WebSphere Application Server administrative console navigation tree, expand Resources and select JMS then Queue connection factories.
- Select the scope of the queue connection factory from the
list. Use the node value
WC_instance_name
, where instance_name is the name of the WebSphere Commerce instance. Create it under the scope ofNode=WC_instance name_node, Server=server1
level. Click New. - Select WebSphere MQ messaging provider and click OK.
- Configure basic attributes with the following values:
Option Description Name JMSQueueConnectionFactory JNDI Name JMSQueueConnectionFactory Optional: Description JMSQueueConnectionFactory Click Next. - Select Enter all the required information into this wizard and click Next.
- Enter the name of the Queue Manager identified
or created in Configuring WebSphere MQ for use with WebSphere Commerce;
then click Next.For example,
hostname.qm
, where hostname is the host name (without the domain) for the machine running WebSphere MQ. - Enter the connection details:
Option Description Transport - If WebSphere Commerce and WebSphere MQ are installed on the same machine and you want to use bindings mode, choose BINDINGS.
- If you have a WebSphere MQ installed on the WebSphere Commerce machine, and you want to use client mode, choose CLIENT.
Hostname - Bindings mode
- Ensure that this field is cleared.
- Client mode
- Enter the fully qualified TCP/IP host name of the WebSphere MQ server.
Port - Bindings mode
- Ensure that this field is cleared.
- Client mode
- Enter the listener port number for the Queue Manager you created in Configuring WebSphere MQ for use with WebSphere Commerce.
Server connection channel - Bindings mode
- Ensure that this field is cleared.
- Client mode
- Ignore this field.
Click Next. - Click Test connection. Confirm the connection results; then click Next. View the summary; then click Finish.
- Select the newly created JMSQueueConnectionFactory.
- Under Advanced, clear Support distributed two phase commit protocol. Click Apply.
- Under Additional properties, click Advanced properties.
- Under connection consumer, clear Retain messages, even if no matching consumer is available. Click OK.
- Under Additional properties, click Connection pool.
- Adjust the maximum number of connections needed. This number
must be 1 greater than the number defined under the
WC_instance_name
enterprise application. Click OK and save the configuration. Click Save in the administrative console task bar. On the Save page, click Save. See Determining the maximum number of connections allowed for the Adapter for WebSphere MQ for more information. - Creating WebSphere MQ messaging provider queue destinations.