A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
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.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Behavior of ServletContext VS Behavior of HttpSession
parameter vs attributes?
A question about Request Vs Session
EJB Stateful Session bean vs HTTP Session
Access to servlet context in HttpSessionListener
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014