----- Original Message -----
From: "Ken M. Mevand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 11:54 PM
Subject: Caching of Classes


> hi,
>
> this question has probably been asked a lot, but i can't seem to find the
> answer.
>
> how do i get tomcat to reload the classes without restarting it?    my
> classes are stored in /WEB-INF/classes and compiled manually by javac.
>
> thanks for the patience, i'm very new to tomcat.
>
>
> -ken
>[...]

with TC4.0, one way is use the "manager" mentioned in another email,
the doc is here:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
in "Administrators", there are several "HOW-TO", click Manager App
HOW-TO:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

another way is "auto-reloading", for ex., in conf/server.xml,  in the
"context defination/declarition" for the webapp named "examples":
        <Context path="/examples" docBase="examples" debug="0"
                 reloadable="true">
                 ^^^^^^^^^^^^^^
then if the old-version of MyServlet has already been invoked, and you
updated
its class(a file), then after a while, MyServlet will be reloaded, and its
init(...)
method will be invoked again automaticaly(by container)

Bo
Nov.13, 2001



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to