|
Problem(Abstract) |
By default, the MDBSamples application that comes with
WebSphere® Application Server V5.0 is configured to run with the Embedded
JMS Provider. However, if the full WebSphere MQ® 5.3 is installed, the
samples can be configured to run with the full WebSphere MQ product. |
|
|
|
Resolving the
problem |
Note: These instructions assume that MDBSamples is already
functioning with the Embedded JMS Provider. If Embedded JMS is not
installed, the instructions are essentially the same, but the Listener
Port (SamplePtoPListenerPort) will need to be created with the Connection
Factory set to Sample/JMS/QCF and the Destination set to
Sample/JMS/Q1, and there will be no JMS resources to delete.
To run the point-to-point MDBSamples with the full WebSphere MQ, follow
these instructions:
- In the WebSphere Administrative Console, select the WebSphere JMS
Provider and set the Scope to "Server". Delete these resources:
SampleJMSQueueConnectionFactory
Sample.JMS.Q1
Sample.JMS.Q2
- Select the WebSphere MQ JMS Provider and define the following
resources:
- WebSphere MQ Queue Connection Factory:
Name = SampleJMSQueueConnectionFactory
JNDI Name = Sample/JMS/QCF
Queue Manager = Queue_Manager_name
Host = Queue_Manager_hostname
Port =
Queue_Manager_Listener_Port_Number
Channel = Channel_name (for remote queue
managers)
Transport Type = CLIENT
To find the queue manager listener port number on Windows:
- If the listener port already exists:
- Go to MQ Services,
- Select the Queue_Manager,
- Right click on its Listener and select Properties
- Select the Parameters tab to find the Listener port number.
- If the listener port does not already exist:
- Go to MQ Services,
- Select the Queue_Manager,
- Right click on it and select New > Listener , then
- Enter a port number on the Parameters tab
- WebSphere MQ Queue Destinations:
Name = Sample.JMS.Q1
JNDI Name = Sample/JMS/Q1
Base Queue Name = Q1
Name = Sample.JMS.Q2
JNDI Name = Sample/JMS/Q2
Base Queue Name = Q2
- Create a new queue manager. On Windows, go to MQ Explorer to create
the Queue Manager. You can also use an existing queue manager. Do not use
the Embedded JMS queue manager (WAS_node_server1). Then do the following:
- Create local queue Q1,
- Create local queue Q2,
- Go to MQ Services, and restart the Queue Manager and the
corresponding Listener
- Restart WebSphere Application Server
- Run the clientConfig tool (in the
install_root\bin directory) to modify the
MDBSamples.ear client configuration:
- Start clientConfig tool,
- Open MDBSamples.ear in the
install_root\samples\lib\MessageDrivenBeans
directory,
- Select WebSphere JMS Provider,
- Delete ConnectionFactory,
- Select MQ JMS Provider,
- Recreate ConnectionFactory.
Note: Use "jms/ConnectionFactory" for the JNDI Name.
- Select "CLIENT" for Transport Type and specify the Queue
Manager, Host, and Port for WebSphere MQ.
- Save changes and exit.
- Run the point-to-point MDBSamples per the instructions in the Samples
Gallery. The Samples Gallery can be accessed by opening a Web browser and
entering:http://localhost:9080/WSsamples/en/index.html (substituting the
host name of the WebSphere machine for localhost if accessing
remotely).
|
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|