Showing posts with label MQ server. Show all posts
Showing posts with label MQ server. Show all posts

Tuesday, June 26, 2007

Configure MQ server (5.3) to accept client connections on Windows platform

a. Start your queue manager by using the strmqm command.
b. Type the following command to start the runmqsc program:
runmqsc [QMNAME]
c. Define a sample channel called JAVA.CHANNEL by issuing the following command:
DEF CHL(’JAVA.CHANNEL’) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER(’ ’) + DESCR(’Sample channel for WebSphere MQ classes for Java’)
d. Start a listener program with the following commands:
runmqlsr -t tcp [-m QMNAME] -p 1414

Monday, June 25, 2007

Basic Websphere MQ Command

Lately I've been involved in solving a MQ problem. Not really familiar with this product, so I'll put down some basic commands here for later reference.
(1) Create a queue manager. Example:
crtmqm -q yelei.queue.manager
(2) Start the queue manager. Example:
strmqm yelei.queue.manager
(3) Launch MQSC console:
runmqsc
(4) Define a local queue in the console:
define qlocal yelei.queue
(5) Exit MQSC:
end
(6) Put a message on the queue. Example:
amqsput yelei.queue
(7) Get a message from the queue. Example:
amqsget yelei.queue