Jon Stevens wrote:
> 
> on 1/2/2001 8:32 AM, "Rafal Krzewski" <[EMAIL PROTECTED]> wrote:
> 
> > J2EE specification requires that all objects that
> > are stored into the the HttpSession should be Serializable.
> 
> URL or quote please?

Servlets 2.3 (public draft August 15 2000), section 7.7.2, page 51 :

7.7.2 Distributed Environments 
Within an application that is marked as distributable, all requests that
are part of a session can only be handled on a single VM at any one
time. In addition the container must be able to handle all objects
placed into instances of the HttpSession class using the setAttribute or
putValue methods approriately.  

* The container must accept objects that implement the Serializable
interface  
* The container may choose to support storage of other objects in the
HttpSession (such as references to Enterprise JavaBeans and
transactions), migration of sessions will be handled by
container-specific facilities.

The servlet container may throw an IllegalArgumentException if a object
is placed into the session for which it cannot support the mechanism
necessary for migration of the session.
These restrictions mean that the Developer is ensured that there are no
additional concurrency issues beyond those encountered in a
non-distributed container. In addition, the Container Provider can
ensure scalability by having the ability to move a session object, and
its contents, from any active node of the distributed system to a
different node of the system.

I don't have servlets 2.2 spec handy, but I believe it has similar
wording
of distributed sessions requirements.

I couldn't find any reference to it in the javadocs :(

Rafal


--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to