O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Best Practices for Servlets

There are a number of best practices that can enable your servlet-based applications to be as successful as possible:

Be Smart About Session State

If you are using in-memory replication, or any other mechanism to protect your session state, it is important to be smart about how you treat the session state objects. In order to maximize efficiency, you want to make sure that session information is only updated when needed. Minimizing the changes that are made to the session state minimizes the number of updates either to the database or to the other nodes in the cluster.

WebLogic Server is very smart about what it needs to replicate for in-memory replication. WebLogic Server monitors the session object to see what objects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required