Determining the maximum number of connections
allowed for the Adapter for WebSphere MQ
In the WebSphere Application Server
Administrative Console navigation tree, expand Applications > Application
Types and select WebSphere enterprise applications.
In the list of enterprise
applications, click WC
Under Modules, click Manage Modules.
In the list of connector modules,
click Adapter for WebSphere MQ. The Enablement-JCAJMSConnector.rar page
displays.
In the Additional Properties section
on the Enablement-JCAJMSConnector.rar page, click Resource Adapter. The
WC.Adapter for WebSphere MQ page displays,
In the Additional Properties section
of the WC.Adapter for WebSphere MQ page, click J2C Connection Factories. The
J2C Connection Factories page displays.
In the list of J2C Connection
Factories, click Enablement-JCAJMSConnector.rar. The
Enablement-JCAJMSConnector.rar page displays.
In the Additional Properties section
on the javax.resource.cci.ConnectionFactory page, click Connection Pool
Properties. The Connection Pools page displays.
Enterprise Applications > WC > Manage Modules > Enablement-JCAJMSConnector.rar > WC.Adapter for WebSphere MQ > J2C connection factories > javax.resource.cci.ConnectionFactory >
Connection pools
Take note of the value in the Max
connections field. This value will be required in Creating a WebSphere MQ messaging provider queue connection
factory.
Max Connections:
10
Creating a WebSphere MQ messaging provider queue
connection factory
1. In the WebSphere Application
Server Administrative Console navigation tree, expand Resources and select JMS
then Queue connection factories.
2. Select the scope of the queue
connection factory from the list. It is recommended to create it under the
scope of Node=WC_instance name_node, Server=server1
level.
3. Click New.
4. Select WebSphere
MQ messaging provider and click OK.
Configure basic attributes with
the following values:
In the WebSphere Application Server Administrative
Console navigation tree, expand Resources
and select JMS then Queue connection factories.
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
Enter the Queue Manager Name as
appears in MQ Messaging
Click Next
In Enter Connection Details ->
Select Bindings
Test Connection -> Summary ->
Finished.
In the WebSphere
Application Server Administrative Console navigation tree, expand Resources and select JMS then Queues
JMS queue to WebSphere MQ queue mappings
JMS
queue
|
WebSphere
MQ queue
|
Target
Client
|
JMSSerialInboundQueue
|
hostname.inbounds
|
JMS
|
JMSParallelInboundQueue
|
hostname.inboundp
|
JMS
|
JMSInboundQueue
|
hostname.inbound
|
JMS
|
JMSOutboundQueue
|
hostname.outbound
|
MQ
|
JMSErrorQueue
|
hostname.error
|
MQ
|
Configuring
WebSphere Commerce to use WebSphere MQ
In Info Center there is a step
To do this in Developer update the
wc-server.xml
c:\IBM\WCDE_ENT70_Comet\workspace\WC\xml\config\
wc-server.xml
<component
compClassName="com.ibm.commerce.messaging.listener.TransportAdapter"
enable="true" name="Listener for WebSphere MQ
(TransportAdapter)">
<property display="false">
<tmpInboundConnectorFile filename="some transport xml file name
- temporary"/>
</property>
</component>
Once this is updated, restart the
server.
Testing WebSphere MQ configuration
To test your
WebSphere MQ configuration, insert the following message in the hostname.inbounds message
queue
Procedure
Open the
WebSphere MQ Explorer according the instructions in the WebSphere MQ
documentation.
Right-click hostname.inbounds and select Put Test
Message from the pop-up menu.
In the test message window, enter
the following text: <?xml
test message> .
WebSphere MQ is configured
properly if the following occurs:
The
test message is consumed from the serial inbound queue (hostname.inbounds).
An
error message appears in the hostname.outbound
queue.
The
original message appears in the hostname.error
queue.