This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Websphere and the fly likes Failover Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Failover Testing" Watch "Failover Testing" New topic

Failover Testing

Gagan Sabharwal
Ranch Hand

Joined: Apr 23, 2006
Posts: 48

I have an application which is running on a clustered environment on Websphere Application Server have an IBM HTTP Server 6 linked to it. I tried to test Failover on it.

But I wasn't able to. When i shut down one of the servers in the clustered environment, the request is not transferred to the other server.So in short Failover has failed.

My question is that what are the pre-requisites to test failover? I googled but i am not able to get any substantial and a concrete material for version of websphere.
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892

You need to explain the test you are running in more detail. How do you know the requests were not transferred? What does that mean anyway? -- I can think of at least four different possible interpretations.

Explain in detail what you did and we can try to explain how failover works in WebSphere and how your test may or may not have been testing for it.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Gagan Sabharwal
Ranch Hand

Joined: Apr 23, 2006
Posts: 48
Hi Kyle,

Thanks for your reply. Well what i intend to explain is that I have an application(in the form of an EAR) which is runnning on a clustered environment on Websphere application Server Java Server Faces version which i am using is 1.1.

To take an example I would say that consider the name of my cluster as "CLUSTER1". There are two servers under this cluster say,


I have an IBM HTTP SERVER 6(a different node) which is acting as a webserver.The plugin-config xml file contains the entries of my clusters.

When i send a request to my webserver it routes my request to the clustered environment and based on Round-robin strategy , it goes either to SERVER1 or to SERVER2. This scenario is working perfectly fine.


When the request gets transferred to a server(which i happen to identify in the server logs based on time stamp say SERVER1), then i stop that server which has recieved the request and I see that HTTP SESSION REPLICATION fails because i get a session time out message, which clearly means that the request is not routed to SERVER2.
I am stuck here and cannot find a solution to proceed to test failover.
I agree. Here's the link:
subject: Failover Testing
It's not a secret anymore!