This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes tomcat clustering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat clustering " Watch "tomcat clustering " New topic

tomcat clustering

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi guys ,

I need to do clustering in tomcat but i got some questions :
1- do i need to change anything ( in programming or in logic ) in my application , my application is J2ee ?
2- Is it easy to configure this in the tomcat ? and any examples for this ?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959

The most important thing in programming is to make sure that your session variables are all serialization-friendly. If the cluster needs to transfer a session to a different server, only the data that can be serialized will make the trip. You don't want holes in you sessions!

It's not too hard to set up a cluster, but I'm going to have to refer you to the documentation.

Customer surveys are for companies who didn't pay proper attention to begin with.
Joe Ackert

Joined: Jan 29, 2010
Posts: 1
Also, just a heads up that Amazon EC2 does not support Multicast. So you may need to decide if you want to support/create/use a database or file system for storing sessions. The following page has some more examples (other than the official docs):

Joe Ackert
Consider Paul's rocket mass heater.
subject: tomcat clustering
Similar Threads
Jboss clustering
Weblogic Clustering Active-Passive
How to replicate Application Scope date in Tomcat clustering