Author |
Message
|
terry902 |
Posted: Tue Jun 02, 2015 12:48 am Post subject: How to send messasge to specified qm in this scenario |
|
|
Novice
Joined: 10 Oct 2014 Posts: 15
|
QM1,QM2,QM3 in a cluster CL.
Q1 is a cluster queue,resides in QM2 and QM3.
My app used MQ java classes not JMS api, only communicate with QM1.
How can I send message to Q1(QM2) or sometimes to Q1(QM3) according to the input parameter.
In JMS API, the code below can works well.
......session.createQueue("queue://QM2/Q1") |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 02, 2015 1:42 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Why would you want to break the clustering paradigm? Why do you care that a particular message goes to a particular queue manager; unless it's a reply to a request message? And it appears you have also answered your own question. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 02, 2015 2:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Check the overloaded versions of the accessQueue API. You'll find all that you need there.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 02, 2015 4:38 am Post subject: Re: How to send messasge to specified qm in this scenario |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
terry902 wrote: |
How can I send message to Q1(QM2) or sometimes to Q1(QM3) according to the input parameter. |
What input parameter? |
|
Back to top |
|
 |
terry902 |
Posted: Tue Jun 09, 2015 5:57 am Post subject: |
|
|
Novice
Joined: 10 Oct 2014 Posts: 15
|
exerk wrote: |
Why would you want to break the clustering paradigm? Why do you care that a particular message goes to a particular queue manager; unless it's a reply to a request message? And it appears you have also answered your own question. |
yes,it's a reply to a request message. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 09, 2015 6:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
terry902 wrote: |
exerk wrote: |
Why would you want to break the clustering paradigm? Why do you care that a particular message goes to a particular queue manager; unless it's a reply to a request message? And it appears you have also answered your own question. |
yes,it's a reply to a request message. |
Then you have your answer. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|