|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
connecting to MQ through ibm.mq.jar in cluster? Failover? |
« View previous topic :: View next topic » |
Author |
Message
|
sarmahdi |
Posted: Tue Jan 03, 2012 11:04 pm Post subject: connecting to MQ through ibm.mq.jar in cluster? Failover? |
|
|
Newbie
Joined: 31 Oct 2011 Posts: 7
|
Hello all,
I am trying to create a connection component to connect to the MQ server using the ibm.mq.jar MQ Manager. I can connect and communicate to the queues. But my main app that uses my component is deployed in clusters.
The issue is that I need to deploy this in cluster mode so if one node in cluster goes down and I have only sent to an MQ Queue and expecting a response the communication is completed some how. Is there a feature that comes with the java MQ components that can bind to the app server like websphere so that if one node in cluster goes down the communication is completed through another node. (like the http session communication and the session remains even the server you are connected to goes down)
People must have communicated to MQ in cluster there is no way such an enterprise level tool/application cant be communicated through cluster.
I will really appreciate any insight to how ppl are using MQ in such environments.
Thanks.
Mahdi. |
|
Back to top |
|
 |
zpat |
Posted: Wed Jan 04, 2012 1:07 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
http is a session-less protocol.
That is an absolutely key difference between web farms and MQ clusters.
Look at the client auto-reconnection feature, however this does not provide a total solution if the queue manager is not stopped in a controlled fashtion with -r option. |
|
Back to top |
|
 |
exerk |
Posted: Wed Jan 04, 2012 1:15 am Post subject: Re: connecting to MQ through ibm.mq.jar in cluster? Failover |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
sarmahdi wrote: |
...Is there a feature that comes with the java MQ components that can bind to the app server like websphere so that if one node in cluster goes down the communication is completed through another node... |
No. If your app puts a request message into a queue manager, which subsequently ends, to continue operation the app can connect to another queue manager, but the reply message will not be present on that queue manager. _________________ 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 |
|
 |
mqjeff |
Posted: Wed Jan 04, 2012 5:15 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You need to understand that the analogy to MQ you're looking for is not at the Session level, where you can start a session with an app server and that JEE App server can potentially replicate that session to other app servers.
You have to think of MQ like an actual HTTP REQUEST. If you have an active session with an App server, when you make an HTTP Request to that app server, and the app server goes down, the session might be available on another app server, but the http reply will not be. It's the same idea with MQ. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|