tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yanni <>
Subject Re: Servlet reloading?
Date Sat, 12 Feb 2000 18:24:21 GMT
> > There is a partial implementation, it should work for development if you
> > don't do something special - I have no ideea how it interacts with Session
> > objects or context attributes ( which are already loaded by the old class
> > loader), but it should work at the same level as JServ ( the code is just
> > cut&paste from there and the logic is the same ).
> >
> Costin, you'll want to do one of two things for the sessions to avoid class cast
> errors:
> * Persist them to session store before reloading, then load them again.
> * Just kill them all.

NOOOOO. I spent many many many many weeks getting this right in Apache
JServ. Look at my code. There is a whole process that is done to serialize
and de-serialize everything that needed to be serialized.
> Also, have you defined some mechanism to decide what "class path" is subject to
> auto-reloads -- probably the WEB-INF/lib JAR files and the WEB-INF/lib classes?
> Anything loaded by the system class loader isn't going to be reloadable.



View raw message