Hi Yoav, I have found that even if I terminate every connection of the servlet to the database and reload the servlet, the servlet still does not find the newly installed printer. I would think that after reloading the servlet all the classes that it had used would cease to exist. That is, any class that had been instantiated or used by the servlet would not remain instantiated after I reload the servlet.
So I am thinking that re-starting tomcat somehow makes Tomcat aware of the services that have been installed after Tomcat was started -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: Servlet caching? Hi, The servlets by themselves do what you tell them to: you wrote them, after all ;) Tomcat doesn't provide any caching of response content by itself without special effort or configuration on your behalf. As Tim said, my guess is a utility class used by your servlet is doing the caching for the printer services list. Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: Carlos [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 9:43 AM >To: Tomcat-User ([EMAIL PROTECTED]) >Subject: Servlet caching? > >Do servlets in Tomcat (1.4) catch results of programs that they run? I >have >a java servlet that lists the print services of printers installed in the >server (Linux Red Hat). I run the servlet before and after I install a >couple of printers in the server; however, the list of printer services >does >not change until I restart Tomcat. At the same time, I run a test program >in the server from the command line to list the print services and this >program lists the newly installed printers right away. This has led me to >believe that the servlet is caching the list of printer services when it is >run the first time and does not re-run the code until Tomcat has been >re-started. > > > >Thanks in advance for your response. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]