Hola Shai:

for 3.3, The code Jon points it's at
org.apache.tomcat.util.ObjectSerializer and it's only used inside
org.apache.tomcat.modules.session.SimpleSessionStore, reload hook.


Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes 25 de diciembre de 2000 0:32
> Para: [EMAIL PROTECTED]
> Asunto: RE: [PATCH] Tomcat session replicator - Pathces for phase I
> 
> 
> Where is the piece of code you have written for jserv???
> 
> --Shai
> 
> -----Original Message-----
> From: Jon Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 25, 2000 00:47
> To: [EMAIL PROTECTED]
> Subject: Re: [PATCH] Tomcat session replicator - Pathces for phase I
> 
> on 12/24/2000 1:26 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
> > +   while (ids.hasMoreElements()) {
> > +    session =
> > findSession(ids.nextElement().toString());
> > +    if (!session.getTimeStamp().isValid())
> > +       continue;
> > +    oStream.writeObject(session);
> > +   }
> > +   oStream.flush();
> > +   fStream.close();
> > +  } catch (Exception e) {
> > +   System.out.println(e);
> > +  }
> > + }
> 
> One more thing about this that you need to consider...if the object
> implements HttpSessionBindingListerWayToLongInterfaceName, 
> then you should
> consider calling its valueUnbound() methods before doing the 
> serialization
> otherwise you are not giving the object you are serializing a 
> chance to do
> what it needs to do.
> 
> Also, I already wrote all of this code for JServ and Tomcat 
> 3.x and you
> aren't even re-using it. Sigh.
> 
> love,
> 
> -jon
> 

Reply via email to