|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Coping a message to multiple queues using the API exit |
« View previous topic :: View next topic » |
Author |
Message
|
Mallik |
Posted: Fri Mar 12, 2004 12:06 pm Post subject: Coping a message to multiple queues using the API exit |
|
|
Acolyte
Joined: 29 Feb 2004 Posts: 53
|
I am trying to use the API exit from the sample programs located at
http://www.developer.ibm.com/tech/sampmq.html to copy a message to multiple queues. I got it working for sending the messages to a 2nd queue but not for 3rd queue. Any one tried succesfully to send the messages to more than 2 queues?
Thanks |
|
Back to top |
|
 |
clindsey |
Posted: Fri Mar 12, 2004 1:04 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
The list containing the source queue names requires the names to be unique. If you need to copy to multiple destinations, you can create a queue alias for the source queue and put the alias name in the list.
For example, to copy messages from Q1 to QA and QB, first create an alias queue called A1 that points to Q1 as the real queue. Then set up the namelist like this:
Q1, QA, 'MyQMGR', A1, QB, 'MyQMGR'
You can generate as many aliases as you need to get additional copies.
Let me know if you have any problems,
Charlie |
|
Back to top |
|
 |
Mallik |
Posted: Fri Mar 12, 2004 1:47 pm Post subject: |
|
|
Acolyte
Joined: 29 Feb 2004 Posts: 53
|
Charlie,
I tried as you told. I want to copy messages from TEST.LQ to TEST.Q1 & TEST.LQ1 These are my names in the name list.
(TEST.LQ, TEST.Q1, QMGR, TEST.AQ, TEST.LQ1, QMGR) and my TEST.AQ points to TEST.LQ
I put the message as follows.
$./amqsput TEST.LQ QMGR
I see messages only in TEST.LQ & TEST.Q1 but not in TEST.LQ1
and If I do
$ ./amqsput TEST.AQ QMGR
I see messages in TEST.LQ & TEST.LQ1 but not in TEST.Q1
let me know if I am doing anything wrong here.
Thanks |
|
Back to top |
|
 |
clindsey |
Posted: Sat Mar 13, 2004 5:57 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
m6148,
I will send you an email on this.
Charlie |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|