ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » How to auto-reconnect to ANOTHER QMGR?

Post new topic  Reply to topic
 How to auto-reconnect to ANOTHER QMGR? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Tue Dec 27, 2011 11:02 pm    Post subject: How to auto-reconnect to ANOTHER QMGR? Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

Hello,

We have 2 QMGRs working as gateways to our cluster, and our app works in a fire-and-forget pattern, thus we would love to auto-reconnect to another gateway QMGR if any fails instead of using a MI-QMGR.

But is it possible to do so? And how? Any java sample code or doc there? I've searched through red books and info centers, and has not acquired much so far.

Thanks in advance.
_________________
Bazinga!
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Dec 28, 2011 12:12 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Using a CCDT will help you do this. MQCONNX is also helpful. However you have not said what platform and API (MQI/JMS) the client app uses.

Of course you can simply store the relevant QMGR names in an ini file and connect to them in your program using whatever logic you wish.

You could try one of them (chosen at random) until the connection works, or if it does not work - wait 15 seconds and try again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to auto-reconnect to ANOTHER QMGR?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.