Академический Документы
Профессиональный Документы
Культура Документы
Leave other fields as default values and Click NEXT twice and ensure queue manager startup as
Automatic and click NEXT.
If the Finish button is not available, type another port number in the Listen on port number field. If
the current value is 1414, try using a different port number, for example: 1415 or 1416. If the default
port number of 1414 is not used at this stage, make a note of the port number used because you will
need it in later stages of this tutorial when QM_APPLE serves as a receiving queue manager. Click
Finish.
Result
Once its been created the Queue manager starts running automatically.
crtmqm QM_APPLE
Messages tell you that the queue has been created and that the default WebSphere MQ objects
have been created.
2.
strmqm
A message tells you when the queue manager has started.
Results
You have now created a queue manager with the name QM_APPLE.
The New Local Queue wizard opens. In the Name field, type Q1 and Click Finish.
Result
runmqsc
2.
Messages tell you that the queue has been created and that the default WebSphere MQ objects
have been created.
Stop MQSC by typing the command:
End
Results
You have now created a local queue called Q1.
Type some Message data Sample Test Meessage for Checking Flow of Message Queue, then click Put
message. The Message data field is cleared and the message is put on the queue and Click Close.
Result
./amqsput Q1 QM_APPLE
o
amqsput Q1 QM_APPLE
1.
Results
You have now created a test message and put it onto the local queue.
Message browser opens to show the list of messages that are currently on Q1
Results
On the Data page of the properties dialog, the Message data field displays the content of the
message.
amqsget Q1 QM_APPLE
./amqsget Q1 QM_APPLE
Results
The sample program starts, and your message is displayed along with any other messages on this
queue. After a pause of 15 seconds, the sample ends and the command prompt is displayed again.
crtmqm QM_ORANGE
Once the setup completed, you can view the created Queue manager in MQ explorer-Stopped status.
When using MQ explorer to create Queue manager for remote queue connection Select Create
server-connection channel
The New Remote Queue Definition wizard opens, fill Remote queue infm and click Finish.
Right-click the Queues folder under QM_ORANGE, then click New Local Queue.
Queue name as QM_APPLE and Usage as Transmission. Click Finish and Transmission queue has been
created. New queues, Q1 and QM_APPLE, are displayed in the Content view.
a.
b.
In the Navigator view, expand the queue manager QM_APPLE that we created earlier.
Right-click the Channels folder, then click New Receiver Channel.
c.
d.
The New Receiver Channel wizard opens. In the Name field, type QM_ORANGE.QM_APPLE
Click Finish. You have now created the receiver channel on the receiving machine.
Sender Channel
On the sending queue manager QM_ORANGE, create the sender end of the channel:
a. In the Navigator view, expand the queue manager QM_ORANGE that we created earlier.
b. Right-click the Channels folder, then click New Sender Channel.
c.
d.
e.
The New Sender Channel wizard opens. In the Name field, type QM_ORANGE.QM_APPLE,
then click NEXT.
In the Connection name field, type the computer name or IP address of the receiving machine
(you should already have obtained this with your system administrator's help).
If the default port number 1414 was not used when creating QM_APPLE, the Connection name
field entry should be of the format:
con-name (port)
f.
Where con-name is the computer name or IP address of the receiving machine, and port is the
port number used when the receiving queue manager was set up.
In the Transmission queue field, type QM_APPLE and Click Finish.
g.
h.
./amqsput Q1 QM_ORANGE
o
amqsput Q1 QM_ORANGE
The following messages are displayed:
2.
Type some message text on one or more lines, then press Enter twice. The following message
is displayed:
Results
You have now created a test message and put it onto the remote queue. The next task is to verify that
the test message was received.
. Double click the last message in the list to view its properties dialog.