• Post Reply Bookmark Topic Watch Topic
  • New Topic

tomcat clustering  RSS feed

 
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Saloon Keeper
Posts: 19011
80
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Everybody's invited. Except this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!