Access messages in the IBM WebSphere MQ local queue

xiaoxiao2021-03-14  216

1) Create a message Queue Manager (CREATE MQ Manager)

Crtmqm -q gw.queue.manager

2) Start Message Queue Manager (Start MQ Manager)

Strmqm gw.queue.manager

3) Run the message queue script command (Run MQ Shell Command)

Runmqsc sms.gw.Queue.manager

Definition queue and channel

Define QL (mysql.log.q) defpsist (YES) MaxDepth (100000) Define Channel (mysql.log.c) CHLTYPE (SVRCONN) Trptype (TCP)

Define QL (ORACAL.LOG.Q) Defpsist (YES) MaxDepth (100000) Define Channel (ORACAL.LOG.C) CHLTYPE (SVRCONN) TRPTYPE (TCP)

end

4) Run Message Queue Surruption (Run MQ Listener)

Runmqlsr -m gw.queue.manager -t tcp -p 1415 &

5) Insert a message to the queue

amqsput mysql.log.q

Enter, then enter the content you want to insert, enter, and then enter. Tip success.

6) Read the message from the queue

amqsget mysql.log.q

转载请注明原文地址:https://www.9cbs.com/read-129280.html

New Post(0)