Beruflich Dokumente
Kultur Dokumente
WAS 6.x
1
Version:
Document Version Date of Creation Name of Author Remarks
2
Contents:
Websphere MQ as JMS provider for WAS 6.x………………………………..1
Contents:…………………………………………………………………………….............3
1. Configure WebSphere MQ 6.0……………………………………….............4
2. Configure WebSphere MQ for publish/subscribe..………..............6
3. Configure the application server………………………………………..........6
4. Set Environment Variables………………………………………..................19
5 .Placing jar files in WMQ Folder ………………………………………..........20
6. Setting setupCmdLine.bat file ………………………………………...........21
3
1. Configure WebSphere MQ 6.0
b. Create a new queue manager named QMGR with the default settings
(Right click on Queue Managers ->New->Queue Manager) (Fig 1 )
4
3. Navigate to the Queues folder for QMG. Create a new local queue named
EXAMPLE.Q with the default settings.
5
C:\WebSphere MQ\bin> runmqsc QMGR < ..\Java\bin\MQJMS_PSQ.mqsc
a) We need to define the JMS connection factory our code will use to get JMS
connections to WebSphere MQ.
b) In the Additional Properties section of the dialog select WebSphere MQ
connection factories to display the WebSphere MQ connection factories
panel .
c) Press the New button. On the next panel, enter or select the following values:
6
7
8
d) Press Apply and then Save.
9
10
d) On the next panel, enter or select the following values:
11
12
3) Define the JMS topic:
13
Figure 5. WebSphere MQ topic destinations
14
4) Define the listener ports
15
i) JMSExampleQueuePort
ii) JMSExampleTopicPort.
16
17
c. On the Listener Ports panel, press the New button.
d. On the New listener port panel , enter or select the following values:
18
19
e) Press Apply and then Save
f) Follow steps a through e again to create a second listener port with these
settings:
20
4. Set Environment Variables:
Environment->Websphere Variables
21
Figure 8. Setting Websphere Variables
22
5 .Place the following jar files in WMQ Folder
SET WAS_CLASSPATH=%WAS_HOME%\properties;%WAS_HOME%\lib\bootstrap.jar;
%WAS_HOME%\lib\j2ee.jar;%WAS_HOME%\lib\lmproxy.jar;%WAS_HOME%\lib\urlprotocols.jar;
C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\com.ibm.mq.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\com.ibm.mqjms.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\connector.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\fscontext.jar;C:\Program
23
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\jms.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\jndi.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\jta.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\ldap.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\messagingClient.jar;C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\lib\WMQ\providerutil.jar;
Note : The class path may vary as per your environment Settings
24