title: JBoss AS or Tomcat for Seam Application? And why?
body: <p>We're about to deploy a Java web application built using JBoss Seam as the application framework.  We'll be deploying in a clustered setup, as this is an e-commerce application and we're concerned about both high-availability and performance.  We've done all of our development and initial testing with the app deployed to JBoss 5.1, however we've recently become concerned about things like memory footprint and performance, and have debated moving to Tomcat.</p>
  
  <p>Our application is an e-commerce application, using the typical multi-tiered app, using JSF for the view, EJB3 for the business layer, and JPA/Hibernate for persistence to a PostgreSQL database.  We also heavily utilize JBoss Cache 2.x for caching support, and Hibernate Search (Lucene) for search support.  </p>
  
  <p>I'd love to hear the opinion of the community on which app server is best for Seam-based applications.  I realize that we'll have to make some changes to our application architecture (no EJBs, timer service->Quartz scheduler, JBoss Cache->ehCache, etc.) to support the migration.  We're comfortable with making those changes, provided they are comparable to what we would get with JBoss.</p>
  
  <p>With JBoss, it seems as though the clustered setup is much easier.  Would we be able to do a clustered setup with Quartz?  ehCache?  As I mentioned, we're currently deploying to JBoss 5.1.  Would JBoss 7 give us better performance and a smaller memory footprint?  If we opt for Tomcat, we're leaning towards Tomcat 7.  Is there any compelling reason to opt for Tomcat 6.x instead?</p>
  
  <p>I'd love to hear your opinions and experience with this type of setup.  We've read the documentation.  We've done some proof-of-concept testing with all of the various platforms.  But, it's hard to know what we should run with in production, and don't want to make the wrong choice and then need to re-architect and test everything again because we've made the wrong choice.  Thanks for any opinions and advice you can provide!</p>