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




"Krishnamurthy, Ramanathan" <[EMAIL PROTECTED]> on 12/14/2001
08:55:28 AM

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

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

Subject:  RE: Dynamic Servlet Loading

Thanks for your input Martin and Krishna.

If you don't put servlet descriptors in web.xml, how else do you publish it
? I guess my question is which APIs in Tomcat (catalina) do you use to
"deploy" a new servlet without bringing down Apache/Tomcat.

Thanks,

ram

> -----Original Message-----
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 14, 2001 9:04 AM
> To: Tomcat Users List
> Subject: RE: Dynamic Servlet Loading
>
>
> I don't have a single servlet in the web.xml, so tomcat can
> handle them
> automatically. If there is no use for it : don't use it ;))
> Saves a lot of
> maintainance.. So only put things in the web.xml that should
> be there (you
> have to check the servlet spec for that to see the options).
>
> Mvgr,
> Martin
>
> -----Original Message-----
> From: Krishnamurthy, Ramanathan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 14, 2001 14:32
> To: 'Tomcat Users List'
> Subject: Dynamic Servlet Loading
>
>
> Hi,
>
> I am new to Tomcat/Servlets.
>
> As I understand the servlet registration happens at startup
> time when the
> web.xml file is read.
>
> Is there some way to make the Tomcat re-read the web.xml file
> OR does Tomcat
> provide APIs to register servlet dynamically ?
>
> Thank you for your help,
>
> Regards,
> ram
>
> --
> 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]>
>

--
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