Author |
Message
|
vzboy |
Posted: Wed Jun 27, 2007 1:07 am Post subject: same message to be consumed by two diffrent application |
|
|
 Novice
Joined: 21 Jul 2005 Posts: 14
|
I have a new requirement from my application team. We have three qmgrs QM1, QM2 & QM3 which are connected to three applications App1 to QM1, App2 to QM2, & App3 to QM3. The requirement is, message sent by App1 to QM2 (Distributed Quing). This message has to be consumed by App2 from QM2 and also the ame message has to be sent to QM3 to be consumed by App3.
I first though of accomplishing this using MQ clustering, but later i realized even though i do clustering i'll only be able to post message in QM2 & QM3 in round robin, but not the same message to both the QMGR simultaneously. THe app team informed us the there wont be any change in the code so we have to get this done only with MQ. Can any one pls help me out to leme now if this is achievable using MQ.
At the moment i'm looking into the possibilities of using PUB/SUB. any other ides or help will be really helpful. _________________ Thanks
vzboy |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 27, 2007 1:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
One other thing you might try is something like the mirrorq exit. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed Jun 27, 2007 1:57 am Post subject: Re: same message to be consumed by two diffrent application |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
vzboy wrote: |
I have a new requirement from my application team... |
Are you using Message Broker in this scenario ? _________________ Marcin |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 27, 2007 2:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
This is a typical Pub/Sub scenario...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jun 27, 2007 3:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Vitor wrote: |
One other thing you might try is something like the mirrorq exit. |
No substitute for proper Pub/Sub.
Let's all repeat that once more.
Use Pub/Sub! _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 27, 2007 3:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
fjb_saper wrote: |
This is a typical Pub/Sub scenario...  |
I never said it wasn't - just offered an alternative as asked!!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jun 27, 2007 3:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Well, if we're going to play alternates...
The sending app can create a distribution list, and send to more than one queue that way.
Still better than mirrorq... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vzboy |
Posted: Thu Jun 28, 2007 3:00 am Post subject: |
|
|
 Novice
Joined: 21 Jul 2005 Posts: 14
|
No wonder why u guys call ur self Gramd master... yeah u guys are gr8. The mirrorq exit worked, i get the same message in two q's now in the same QMGR. Am working on the distribution list now, as i have to convince the dev team to change their code. THx a ton guys... _________________ Thanks
vzboy |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 28, 2007 6:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vzboy wrote: |
No wonder why u guys call ur self Gramd master... yeah u guys are gr8. The mirrorq exit worked, i get the same message in two q's now in the same QMGR. Am working on the distribution list now, as i have to convince the dev team to change their code. THx a ton guys... |
Point 1 - the board calls us Grand Master based on number of posts. It's not an indication of knowledge, except in the case of the singular title Grand Poobah!
Point 2 - before that most worthy points it out, bear in mind the mirrorq exit is sample code & not necessarily production strength. If you're going to use this over anything other than the short term, review it and be sure you're confident of it's robustness and your ability to support it.
But well done for finding a solution, hope the distribution list works out for you (it's a better way than mirrorq).  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 28, 2007 6:55 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Vitor wrote: |
that most worthy |
Merely most verbose. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
cicsprog |
Posted: Thu Jun 28, 2007 2:00 pm Post subject: |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
I'd say pub/sub (i.e. lame attempt to make Grand Master level).  |
|
Back to top |
|
 |
|