Posted: Sun Jul 16, 2006 10:13 pm Post subject: MQ clustering scenario ... pls help. Thanks.
Novice
Joined: 16 Jul 2006 Posts: 12
Dear MQ Gurus....
I am new to MQ and have a question may be very basic. Would greatly appreciate your help on this one.
Here are my application design requirements......
I've got a application (call it MQ_SENDER) that need to put messages on a Q.
This Q is being listened to by two identical applications (MQ_RECEIVER1, MQ_RECEIVER2). Both the MQ_RECEIVERs run on two different machines. The idea being if any of the receiver instance is unavailable, then the other active receiver should be able to pick the message and process it. In case if both the receiver are up and running then still only one receiver should be able to pick the message and process it.
The basic requirement here is a "receiver always available" scenario. The MQ_SENDER should just put the message on a single Q and have the confidence that either of the receivers would have received the msg. Now the point of failure could be anyone....the receiver themselfs or the Q manager installed on either of the two machines.
I guess the answers lies somewhere in the realm of MQ clustering. But I am not exactly sure how.
Any anyone pls suggest, whats the best way to achive this.
Many many thanks in advance and would greatly appreciate any sort of input.
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
In simple terms:
MQCluster the two receivers and make sure the sender app specifies "MQOO_BIND_NOT_FIXED" when it opens the queue.
In less simple terms, look through (or search) the Clustering manual & the Clustering section of this forum. Your next question will probably be about stranded messages (i.e. messages received by a queue manager but not processed before failure occured) and this has been discussed many times in here, along with a number of useful ways you can vary the above simplistic scenario.
Have fun _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum