Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://Yourhost/servlets-examples-cluster - HttpSession is not used here, hence no sticky session http://Yourhost/servlets-examples-cluster/servlet/SessionExample - HttpSession is used here, hence sticky session should be in effect

BTW, Sticky Session refers to the load balancer sending all requests for the same httpsession (indicated by a cookie or encodedUrl) to the same cluster member. This is valuable for applications that save state in an httpsession (e.g. shopping cart).

You can test failover by stopping the geronimo server that owns the sticky session and seeing that the next http request will failover into the remaining cluster member. The httpsession data from the previous request should be recovered and displayed in the refreshed browser window.

...