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 » Clustering » tranparent Failover for MQSeries Java Client in a MQ cluster

Post new topic  Reply to topic
 tranparent Failover for MQSeries Java Client in a MQ cluster « View previous topic :: View next topic » 
Author Message
bikkina
PostPosted: Thu Nov 04, 2004 3:23 am    Post subject: tranparent Failover for MQSeries Java Client in a MQ cluster Reply with quote

Newbie

Joined: 28 Mar 2004
Posts: 7

How do we achieve tranparent Failover for MQSeries Java Client in a MQseries cluster set up? For example, if a queue manager goes down in middle of a put or get operation, the client should be able to switch to the next available queue manager and continue processing in a transparent manner to the application.

I saw some one is telling me current version of the Java and JMS classes cannot access that file, so they have to code a list of alternative connections. You can do this either explicitly (for example, setting the TCP/IP address of each queue manager in your program until you successfully connect), or by iterating through entries in the ConnectionFactory details accessed through JNDI.

But any one tell me how can i iterating through entries in the ConnectionFactory details accessed through JNDI in program ?
If any one has a piece of code plz share it to me tht will be great! or else
expalin me the solution who to do?
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Thu Nov 04, 2004 4:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The problem is this... you need to have a list or set of some kind that contains information used to make client connections.

If you are not using JNDI to store your QCFs and etc, then the list needs to contain entries that each have enough information in them to make a client connection.

If you are using JNDI to store your QCFs, then your list needs to contain entries that are keys used to look up QCFs in JNDI.

So the problem is the same either way, the only thing that is different is what you are iterating over and what you do in each iteration.
_________________
I am *not* the model of the modern major general.
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 » Clustering » tranparent Failover for MQSeries Java Client in a MQ cluster
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.