Author |
Message
|
Dalapathi |
Posted: Wed Mar 01, 2006 10:46 am Post subject: BASIC MQ QUERIES |
|
|
 Apprentice
Joined: 30 Jan 2006 Posts: 27 Location: IBM,BANGALORE,INDIA
|
I NEED TO SEND MESSAGES TO TWO OR MORE QUEUE MANAGERS AT A TIME HOW DO I NEED TO CODE THE COMMAND..
(I.E)AMQSPUT REMOTEQUEUE QMGRNAME(THIS IS FOR SENDING THE MESSAGE TO ONE QUEUE MANAGER SIMILLARLY LIKE THIS IF I NEED TO SEND TO MORE THAN ONE QUEUE MANAGER HOW DO I NEED TO CODE THIS COMMAND |
|
Back to top |
|
 |
clindsey |
Posted: Wed Mar 01, 2006 11:02 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Wed Mar 01, 2006 11:04 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
Do you mean, several QMgrs on the same system? Then run amqsput via script in a loop.
Do you mean, several QMgrs on different systems? Then run amqsputc (the client version) via script in a loop.
Do you mean, out of an application, connected to one QMgr, sending messages to several QMgrs? Use distribution lists.
Specify, what you want! _________________ Regards
Hubert |
|
Back to top |
|
 |
Dalapathi |
Posted: Wed Mar 01, 2006 12:35 pm Post subject: |
|
|
 Apprentice
Joined: 30 Jan 2006 Posts: 27 Location: IBM,BANGALORE,INDIA
|
I mean the queue managers on the same system.. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 01, 2006 12:39 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can also rewrite amqsput to use threads. Then you can establish a connection to one queue manager in each thread, and in this way talk to more than one queue manager at a time.
Or you can use the MIRRORQ exit installed on one queue manager to copy messages to remote queues that will go to the othre queue managers. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Dalapathi |
Posted: Wed Mar 01, 2006 12:46 pm Post subject: |
|
|
 Apprentice
Joined: 30 Jan 2006 Posts: 27 Location: IBM,BANGALORE,INDIA
|
OK
I WILL TRY IT..
CAN ANYONE HELP ME IN LEARNING WRITING OF SCRIPTS ...
THAT IS THE BASICS OF HOW TO WRITE SCRIPTS ..
(THE SYNTAXES AND RULES I NEED TO FOLLOW TO CODE THEM) |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 01, 2006 12:47 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Please stop posting in ALL CAPS.
Scripting is dependant on what operating system you are using.
You will get better answers from your local systems administrators on how to write these scripts than from us. And they will likely come quicker. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Dalapathi |
Posted: Wed Mar 01, 2006 1:46 pm Post subject: |
|
|
 Apprentice
Joined: 30 Jan 2006 Posts: 27 Location: IBM,BANGALORE,INDIA
|
here iam practising in writing scripts .
iam using the AIX 5.0 operating system.. |
|
Back to top |
|
 |
clindsey |
Posted: Wed Mar 01, 2006 2:09 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Did you try amqsptl?
You can put the same message to multiple queues on the same qmgr or remote qmgrs.
Charlie |
|
Back to top |
|
 |
|