but the servlet's instance does not get destroyed between requests so there isn't a real need for that, is there ? and in any case I've written servlet that was using threads once before I knew that isn't such a great practice and I never got a NotSerializableException. Do you mean to say that when a web server crashes and goes back up again, it reloads the servlets state at the time of the failure? which Web server you know of does something like that? pls. explain. zm.
-----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jaishankar Jayaram Sent: Tuesday, January 15, 2002 9:59 PM To: [EMAIL PROTECTED] Subject: Re: why Servlet implements Serializable >> to store context params across reloads, >> to store changes to servletconfig's init parameters, >> to save state of otherwise private static data for the servlet, >> etc jai > From: Zvika Markfeld <[EMAIL PROTECTED]> > Reply-To: "A mailing list for discussion about Sun Microsystem's Java > Servlet API Technology." <[EMAIL PROTECTED]> > Date: Tue, 15 Jan 2002 21:50:50 +0200 > To: [EMAIL PROTECTED] > Subject: Re: why Servlet implements Serializable > > Hi, > A servlet's instance does not get serialized between requests or at any > other time; therefore, there is no need for a servlet to implement the > Serializable interface at any case. You may be confusing HttpSession > objects, which may at certain times undergo serialization due to timeout or > when deployed in clustered environment where client sessions need to exist > on more than one Web machine for fault tolernce purposes. > zm. > > > -----Original Message----- > From: A mailing list for discussion about Sun Microsystem's Java Servlet API > Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Sujith Kumar > Sent: Tuesday, January 15, 2002 1:57 PM > To: [EMAIL PROTECTED] > Subject: Re: why Servlet implements Serializable > > > a servlet implements serializable in order to maintain persistence between > requests. > > Please note that its not just the servlets that persist, so do the threads > created by the servlets. > > > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.Kindlesystems.com > ********************************************************************** > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
