May you share with me the bechmarking you did?
I'm trying to find out if I should advice JBoss+Jetty or JBoss+Tomcat for a project infrastructure and that benchmark would be great.
Answering to your question:
Yes, you can have Tomcat clustered http session. I'm not sure how this is achieved in JBoss packege.
Check this thread
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ this thread Matt Cleveland (groovesoftware) uses a clustered setup with JBoss and Tomcat. Read it's initial post and maybe the files he posted in the 3rd message and I'm pretty sure you'll get your answer.
Boa sorte! ;-)
Tomcat session clustering is available since JBoss 3.0.1RC1. Branch_3_0 in CVS has some fixes and improvements. The implementation uses Sacha's generic session clustering code.
I forgot to answer your second question ;-)...
Yes, sessions time out in Tomcat (I don't know how this is handled in Jetty). The Tomcat-clustering code respects the normal HttpSession-attributes (maxInactiveTimeInterval)...
I've made some tests with Jetty, Tomcat 4.0.4, Orion 1.5.4 and OC4J 1.5.4. I know everybody must do it's own benchmark, so here comes my own:
App Server: Athlon 800Mhz, 512MB ram, Windows XP professional
Database: Oracle 8.1.7 - running on a 4 processors DELL Machine(Pentium III 900, 1GB ram)
Test setup: 100 simultaneous threads (MS Web App Str Tool)
Files: 10 jsp(few database reads, not using ejb) files and 10 jpg files (about 70Kb, each)
All jvm were started with -Xmx400m -server
Test Time: 2 minutes
Jetty 4.0.2: 9508 hits - 79 hits per second
Tomcat 4.0.3: 16808 hits - 140 hits per second
Orion Server: 25409 hits - 211.23 hits per second
OC4J Server: 27402 hits - 228.68 hits per sec.
That's it! Of course, it's a lot generic. If you allow me to give you an advice, do your own benchmark.
Thanks anyway for your answers.
Thanks for your answers!