A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Behavior of ServletContext VS Behavior of HttpSession
Joined: Oct 19, 2006
Jul 11, 2007 23:38:00
please tell me the difference between the "Behavior of ServletContext" VS "Behavior of HttpSession" in Distributed Environment?
Joined: May 30, 2006
Jul 12, 2007 00:14:00
In a distributed environment,
Each JVM will have a separate
. So you cannot depend on the Conetext level attributes while sharing attribute information
But the Session object is shared between all the JVM's present in the environment. You can
this out by implementing the
on your attributes.
The attributes will be passivated and then activated when they move from one server to another but in this case your attributes must be serializable.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Behavior of ServletContext VS Behavior of HttpSession
EJB Stateful Session bean vs HTTP Session
Access to servlet context in HttpSessionListener
A question about Request Vs Session
parameter vs attributes?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014