Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370391

Summary: Make clients more robust by adding server failover support
Product: [Technology] OSEE Reporter: Ryan Brooks <ryan.d.brooks>
Component: OSEE Application FrameworkAssignee: Swapna Mising name <swapna.r>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.9.9   
Target Milestone: 0.9.9   
Hardware: All   
OS: All   
Whiteboard:

Description Ryan Brooks CLA 2012-02-01 23:42:50 EST
While there maybe multiple application servers running, currently the client is not fault tolerant because it only performs arbitration once.

Use this failover strategy  instead: http://openejb.apache.org/ejb-failover.html
Comment 1 Ryan Brooks CLA 2012-02-08 23:58:15 EST
Perhaps the best first step would be to get HTTP requests to failover working using a fixed list of alternative servers.  Once that is working to then add support for a dynamic alternative server list.

In org.eclipse.osee.framework.core.util.HttpProcessor both post() methods (this method is overloaded) utilizes the class org.apache.commons.httpclient.methods.PostMethod with the class org.apache.commons.httpclient.DefaultHttpMethodRetryHandler for handling retries upon failure.

The first option that comes to mind to hook in support for server failover would be to extend HttpMethodRetryHandler to make a customer handler.  However, that will probably not let you have the request directed to a different server.