You can use the manager app to stop and restart a particular webapp without stopping the whole tomcat server. That *should* make it aware of new classes but don't quote me on that.
----- Original Message ----- From: "Krishnamurthy, Ramanathan" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, December 14, 2001 10:32 AM 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) ? > > Probably I am missing some basic concept here. > > Thanks, > > Regards, > ram > > > -----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]>
