Author |
Message
|
ja2796 |
Posted: Mon Jun 22, 2009 8:03 am Post subject: one que sent to multiple locations |
|
|
Newbie
Joined: 22 Jun 2009 Posts: 1
|
Instead of having my program send a message to several locations, I was wondering if MQ could handle this. I send the one que and MQ can distribute this to multiple locations. The que being sent out can have different locations each time. I am hoping for some majic. |
|
Back to top |
|
 |
sumit |
Posted: Mon Jun 22, 2009 8:25 am Post subject: Re: one que sent to multiple locations |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
ja2796 wrote: |
I send the one que and MQ can distribute this to multiple locations. The que being sent out can have different locations each time. |
With 'locations' do you mean different queue managers? Are you working in a clustered environment? You can use load balancing feature of cluster if you have queues with same name on multiple queue managers and all are in cluster. _________________ Regards
Sumit |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 22, 2009 8:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What is "Publish/Subscribe"? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 22, 2009 9:03 am Post subject: Re: one que sent to multiple locations |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ja2796 wrote: |
I am hoping for some majic. |
The magic's called "pub/sub" - look it up. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 22, 2009 9:04 am Post subject: Re: one que sent to multiple locations |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
[quote="sumit"]
ja2796 wrote: |
You can use load balancing feature of cluster if you have queues with same name on multiple queue managers and all are in cluster. |
Only if the poster wants 1 copy of 1 message to one location. I interpreted it as 1 put, multiple copies. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Mon Jun 22, 2009 9:09 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
It would be neat to have an alias queue refer to multiple base queues, but it's not there as a product feature.
Pub/sub is a relatively complex way to meet this simple requirement. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 22, 2009 10:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
zpat wrote: |
It would be neat to have an alias queue refer to multiple base queues, but it's not there as a product feature. |
Yes it is, at least in v7.
You create a QALIAS that points to a Topic. |
|
Back to top |
|
 |
sumit |
Posted: Mon Jun 22, 2009 11:33 am Post subject: Re: one que sent to multiple locations |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
Vitor wrote: |
sumit wrote: |
ja2796 wrote: |
You can use load balancing feature of cluster if you have queues with same name on multiple queue managers and all are in cluster. |
|
Only if the poster wants 1 copy of 1 message to one location. I interpreted it as 1 put, multiple copies. |
Quote: |
The que being sent out can have different locations each time. |
My understanding is different means, no alt. message should go to same q. If this would be multiple, pub-sub indeed is a better option.
That's my interpretation.  _________________ Regards
Sumit |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jun 22, 2009 1:01 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Then there's the option of a Distribution List. It's a programming construct, but satisfies the fan-out requirement. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|