|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
tranparent Failover for MQSeries Java Client in a MQ cluster |
« View previous topic :: View next topic » |
Author |
Message
|
bikkina |
Posted: Thu Nov 04, 2004 3:23 am Post subject: tranparent Failover for MQSeries Java Client in a MQ cluster |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Nov 04, 2004 4:45 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|