Author |
Message
|
bebryant |
Posted: Wed Jun 04, 2003 7:17 am Post subject: How do I deliver to two different destinations? |
|
|
Newbie
Joined: 04 Jun 2003 Posts: 3
|
Can someone tell me if it is possible to set up a remote queue definition to deliver to two different queue managers and queues. |
|
Back to top |
|
 |
skn |
Posted: Wed Jun 04, 2003 7:28 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
what exactly u want to accomplish.deliver the same message to two QMGRs or Alternate the meaasges between the QMGRS. |
|
Back to top |
|
 |
bebryant |
Posted: Wed Jun 04, 2003 7:29 am Post subject: |
|
|
Newbie
Joined: 04 Jun 2003 Posts: 3
|
We want to deliver the same message to two different qmgrs -- not alternating. |
|
Back to top |
|
 |
skn |
Posted: Wed Jun 04, 2003 7:34 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
i dont think u can do that with remote defenitions.u can use the MQSI for that. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jun 04, 2003 8:30 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
In addition to WMQI, you could use a distribution list to get two sends out. You could also consider pub/sub with the original send being a publish and the two receives being subscribers. Another alternative would be to look at something like the mirrorq sample to make a copy of a message on a second queue. |
|
Back to top |
|
 |
bebryant |
Posted: Wed Jun 04, 2003 10:03 am Post subject: |
|
|
Newbie
Joined: 04 Jun 2003 Posts: 3
|
Distribution lists sound like the answer. I am searching in the manuals to understand how to use them. I'm struggling to find out how you define the distribution lists. Is it an object you define or just part of a message header?
My users have a program that writes to a queue currently. They are asking for a simple way to write to two qmgrs but they don't want to have to change their program. My guess is that if they use a distribution list - the MQPUT command will be different and they will have to change their program no matter what..
Am I understanding this correctly? |
|
Back to top |
|
 |
skn |
Posted: Wed Jun 04, 2003 10:31 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
even if u use mirrorq, the program needs to changed.i dont think its possible without changing the program whichever way u choose. |
|
Back to top |
|
 |
bduncan |
Posted: Wed Jun 04, 2003 3:45 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
I always chuckle when I hear people say they want a highly specific application to suddenly do something different, without having to change any code... Unfortunately, if you want to use distribution lists, you will have to change your application, as you guessed. As some other people suggested, your best bet may be to use a program like mirrorq duplicate the message once your application has put it to some intermediate queue. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
zpat |
Posted: Fri Jun 06, 2003 12:37 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Generally far better to amend the program than it is to complicate your support and maintenance environment.
But yet another way (on 5.3) is the API crossing exit. But I would really only do this if you've lost the source code of the original program. |
|
Back to top |
|
 |
Cliff |
Posted: Fri Dec 19, 2003 6:16 am Post subject: |
|
|
Centurion
Joined: 27 Jun 2001 Posts: 145 Location: Wiltshire
|
If the PUTting application is or can be made to put to remote queues, then this can easily be achieved via a channel message exit. The exit can send a copy of the message to another queue, perhaps the original queue name with a suffix.
So, no changes to the application!
Cheers -
Cliff |
|
Back to top |
|
 |
|