In fact, Tomcat does support automatic reloading of classes.
When you declare a context, add a 'reloadable="true"' attribute:
<Context path="/admin"
docBase="webapps/admin"
reloadable="true"
trusted="false" >
See apps-admin.xml or server.xml for an example.
In Tomcat 3.2.1, this feature did not always work well, especially with
JSPs; in Tomcat 3.3 I cannot remember if it was enabled yet.
Un saludo,
Alex.
Paul Foxton wrote:
>
> AFAIK tomcat doesn't support automatic reloading of classes. You do have to
> restart.
>
> Paul
>
> > -----Original Message-----
> > From: John Baker [mailto:[EMAIL PROTECTED]]
> > Sent: 19 July 2001 11:36
> > To: [EMAIL PROTECTED]
> > Subject: Class reloading
> >
> >
> > Hello.
> >
> > If I write a class and use it in a jsp page, then change the
> > class, I have to
> > restart tomcat. Is there any way I can get around this, ie
> > tell tomcat to
> > reload the class (and forget about the cached loaded copy I
> > expect it has).
> >
> >
> > John
> >
> > --
> > John Baker, BSc CS.
> > Java developer, Linux lover.
> > I don't wanna rock, DJ.
> >