"Krishnamurthy, Ramanathan" <[EMAIL PROTECTED]> on 12/14/2001
12:32:17 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   'Tomcat Users List' <[EMAIL PROTECTED]>
cc:

Subject:  RE: Dynamic Servlet Loading

Hi,

Thanks for your reply.

Sorry for not defining my problem clearly.

I want to load completely new servlets in runtime. A concrete example would
be as follows:

- An application is "fooApp" exists under webapps.
- in webapps/fooApp/WEB-INF/web.xml I have one entry for say "Servlet_A"
with a class "Server_A_Impl"
- At a later point in time (while Tomcat is still running) I want to add a
completely new servlet say "Servlet_B" with a class "Servelet_B_Impl" to
web.xml.
- At a later point in time (while Tomcat is still running) I want to add a
another new servlet say "Servlet_C" with a class "Servelet_C_Impl" to
web.xml.

Would Tomcat re-read webapps/fooApp/WEB-INF/web.xml and "deploy" this new
servlets by some means (say by setting reloadable to true) ?

Tomcat reads each web.xml for every web app only when it is started. TC
doesn't read it everytime you make changes it. But as I said instead of
using the name, you could use the class name (and if in a package then
packagename.classname) to access your servlet w/o restarting TC. But trying
to access with the <servlet-name> won't work w/o a restart.


Probably I am missing some basic concept here.

Thanks,

Regards,
ram

Thanks.
RS

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 14, 2001 12:52 PM
> To: Tomcat Users List
> Subject: RE: Dynamic Servlet Loading
>
>
>
> You do not need to if your application exists under
> TOMCAT_HOME/webapps.
> The classes are automatically picked up.
> Set the reloadable property to true in the <Context>
> definition. This way
> if you happen to make changes to an existing servlet then it is loaded
> automatically too.
>
> Thanks.
> RS
>


----------------------------------------------------------------------------

------------
Ramanathan Krishnamurthy
AP Engines, Inc.
Five Clock Tower Place, Suite 250
Maynard, MA  01754



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









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

Reply via email to