No I don't think you have to use a GUID for this. Any object class that implements
in java.io.Serializable should work in Tomcat 4.0.
I have been perusing the JServ-1.1.2 source, particularly looking at
`java/org/apache/jserv/JServServletManager.java'. This class has the `session'
hashtable
object. There is some serialisation going on with ACLInputStream thing,
but I don't think this class saves to a file.
I think I naive hack would be:
1) every JServServletManager.java save the persistant valid session object
for it's `zone' when the destroyServlets method is called.
2) hack the constructor to load the persistant sessions for the zone if any
JServServletManager.java == Apache JServ Zone is true
--
Peter Pilgrim
G.O.A.T
"The Greatest of All Time"
---------------------------------------- Message History
----------------------------------------
From: "Duffey, Kevin" <[EMAIL PROTECTED]>@java.sun.com> on 22/11/2000 16:38 PST
Please respond to A mailing list about Java Server Pages specification and reference
<[EMAIL PROTECTED]>
DELEGATED - Sent by: A mailing list about Java Server Pages specification and
[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Re: Will Jakarta Tomcat Support Persistant Sessions?
Is it necessary to use a uid in every serializable class for this to work?
Or is that only for some other purpose?
--<CUT DOWN>--
> I had better add one more clarification to this, so you will
> know how it works.
>
> Tomcat 4.0 attempts to save your active sessions, and all of
> their attributes, when it shuts down or is restarted. However,
> saving attributes will only work if they are serializable
> (that is, they and any classes they depend on implement
> java.io.Serializable). Any of the attributes that are not
> serializable will not be saved and restored.
>
> Craig
>
--<CUT DOWN>--
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets