File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat clustering " Watch "tomcat clustering " New topic
Author

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 ?

Thanks,
Sherif
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16058
    
  21

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
Greenhorn

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):

http://www.datadisk.co.uk/html_docs/java_app/tomcat6/tomcat6_clustering.htm

Joe Ackert
https://www.verical.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat clustering