ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Coping a message to multiple queues using the API exit

Post new topic  Reply to topic
 Coping a message to multiple queues using the API exit « View previous topic :: View next topic » 
Author Message
Mallik
PostPosted: Fri Mar 12, 2004 12:06 pm    Post subject: Coping a message to multiple queues using the API exit Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Fri Mar 12, 2004 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mallik
PostPosted: Fri Mar 12, 2004 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Sat Mar 13, 2004 5:57 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

m6148,

I will send you an email on this.

Charlie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Coping a message to multiple queues using the API exit
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.