Deploying Servlets

Once you develop a servlet, you need to decide how to make it available. Recall that servlets execute within a container and that each container has an associated JVM. For many deployments, having one servlet container will be enough. However, to promote scalability, most servlet systems give you the opportunity to distribute servlets across a set of machines for improved load balancing and fault tolerance—key attributes that encourage scalability.

Session Management with Multiple Containers

Distributing servlet containers across multiple machines is a common way to improve the scalability of your servlet deployment. For the most part, it's an effective strategy—until you again get to the sticky issue of session management. ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.