Author |
Message
|
Augusto |
Posted: Wed Feb 04, 2009 2:02 pm Post subject: cluster queue |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
I have defined QMA & QMB queuemanagers and added to cluster named TEST. i created cluster queues named QC_REQUEST in both QMA&QMB. i put the message on QC_REQUEST queue in QMA. I cannot get message from QC_REQUEST in QMB. can anyone findout and help me? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 04, 2009 2:13 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You can only GET a message from a qmgr you are connected to (WMQ)
So if you connect to QM1 and have the same cluster queue on QM1, QM2 and QM3, you can only get messages from the cluster queue on QM1.
To get messages from the cluster queue on QM2 you have to connect to QM2, etc...
The search button should have shown you that answer already as it is given quite frequently.
Now if you are using the JMS Engine on the WAS SIBUS with a DB as persistency repository you can probably retrieve messages from any queue, as long as you have a connectivity to the DB.
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
Augusto |
Posted: Wed Feb 04, 2009 2:25 pm Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
I am testing on windows using amqsput & amqsget. below is output when i tried amqsget QC_REQUEST QMB
Sample AMQSGET0 start
no more messages
Sample AMQSGET0 end |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 04, 2009 2:30 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Augusto wrote: |
I am testing on windows using amqsput & amqsget. below is output when i tried amqsget QC_REQUEST QMB
Sample AMQSGET0 start
no more messages
Sample AMQSGET0 end |
Working as expected.
Which part of
Quote: |
You can only GET a message from a qmgr you are connected to (WMQ) |
did you not get?
Let me make that crystal clear:
You can only get a message from a QUEUE LOCAL defined on a qmgr you are connected to.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Augusto |
Posted: Wed Feb 04, 2009 2:44 pm Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
i didn't get. how can we send messages from 'x' cluster queue in QMA to 'x' cluster queue in QMB. make sure that both QM's are in cluster.  |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Feb 04, 2009 3:25 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Augusto wrote: |
i didn't get. how can we send messages from 'x' cluster queue in QMA to 'x' cluster queue in QMB. make sure that both QM's are in cluster.  |
Easy, just define local queue 'x' on QMB as being in the cluster. No other definitions are required on any other queue manager.
You can then open the queue and put to it from any queue manager in the cluster and the message will arrive on the local queue at QMB. _________________ Glenn |
|
Back to top |
|
 |
Augusto |
Posted: Wed Feb 04, 2009 3:30 pm Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
I did samething and not able to get from QMB. i assume i made some mistake even i don't know |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 04, 2009 8:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Augusto wrote: |
I did samething and not able to get from QMB. i assume i made some mistake even i don't know |
Looks like you are defining the problem poorly. It might be the language barrier. You might want to the cluster manual
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
AkankshA |
Posted: Wed Feb 04, 2009 10:06 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
thats is because your queue manager connected has a local queue of that name
add another QM in your cluster named QMC
now put the message on queue
amqsput QC_REQUEST QMC
your messages will go to both QMA and QMB .. one by one...
read cluster manual to play more with configurations..
 _________________ Cheers |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Feb 24, 2009 3:33 am Post subject: REPLY : TO GET MSG FROM QMB cluster queue |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Augusto wrote: |
i didn't get. how can we send messages from 'x' cluster queue in QMA to 'x' cluster queue in QMB. make sure that both QM's are in cluster.  |
hey
hope i understood your problem correctly then define a local queue and advertise it in the cluster, i mean define a cluster queue on QMB.
QMA can put message on that queue (as queue is clustered and visible to all qmgrs to put). Now connect to the QMB to get the message from that queue which was being defined in this qmgr.
Thanks
Varun Gupta |
|
Back to top |
|
 |
sree470 |
Posted: Thu Apr 09, 2009 2:56 pm Post subject: |
|
|
 Newbie
Joined: 09 Apr 2009 Posts: 5
|
I may explain this. I faced same dilemma when I tested using amqsput and amqsget.
When you put messages using amqsput in queue of one of the queue messages, put more than one message. You can do same with MQ explorer. And they go alternatively to the other queue manager and remaining stay in the queue manager you put.
When you put one message it stays in it. Also make sure you declare the Queue manager property CLWLUSEQ(ANY) from LOCAL. |
|
Back to top |
|
 |
sumit |
Posted: Thu Apr 09, 2009 10:34 pm Post subject: Re: cluster queue |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
I didn't understand your question properly.
Augusto wrote: |
I have defined QMA & QMB queuemanagers and added to cluster named TEST. i created cluster queues named QC_REQUEST in both QMA&QMB |
Are these both local queues? Is your intention to achieve load balancing?
Augusto wrote: |
i put the message on QC_REQUEST queue in QMA. I cannot get message from QC_REQUEST in QMB. can anyone findout and help me? |
Do you mean you put 1 message which went to QC_REQUEST on QMA and now you want to GET the same message from QC_REQUEST on QMB ?
Augusto wrote: |
how can we send messages from 'x' cluster queue in QMA to 'x' cluster queue in QMB. |
Now, this doesn't seem to be a load balancing scenario. Either you need to use qalias or qremote (depends on your configuration) to send messages from 1 qmgr to another..
Can you also paste your queue definition here and state your exact requirement? _________________ Regards
Sumit |
|
Back to top |
|
 |
Vitor |
Posted: Fri Apr 10, 2009 1:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I think the poster has either fixed the problem in the intervening 2 months, or given up. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|