----- Original Message -----
From: Mike Engelhart <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 01, 1999 8:38 AM
Subject: Re: Passing Connection Objects from servlets to JSP??


> > This is not a good practice. Contents of sessions should be
> > serializable, and connections are not. Imagine a distributed servlet/jsp
> > cluster!
>
> While i agree that stuffing java.sql.Connections into a session isn't a
good
> idea, where does it say that contents of session should be serializable?


Check the JSDK 2.2 spec.  I believe that it specifies that anything put into
a Session must be serializable else you will get an exception.  This was
done to allow distributed servlet containers for load balancing.
David

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to