Clustered Web application requirements

To deploy your Web application in a cluster, you must have a mechanism to support load balancing (and optionally failover), configure a mechanism to replicate HTTP session data between servers in the cluster, and make sure your code supports distributed deployment.

Load balancing and failover

Beginning in EAServer 6.0, the wlb Web application (Web-load balancer) provides load balancing for Web applications using HTTP redirects—see “Setting up and using the Web-load balancer”.

Session data replication

If a Web application is distributed and running in a cluster, EAServer replicates session data to all servers in the cluster, using persistent storage. EAServer stores session data in a persistent data store to support shared sessions and session failover.

Coding considerations

No changes are required to your servlet and JSP implementation code to support distributed sessions, as long as:

Because session data is bound to a single user, you cannot use sessions to store global read-write data. Many applications use ServletContext properties to store global data, but the ServletContext is not global to a distributed application and cannot be used as a read-write shared-memory store.