Thank you for the information. This is what I had designed, but was hoping that tomcat had some way of telling the servlets to reload configuration information.
Shapira, Yoav wrote:
Howdy,
It'd be very difficult for this mechanism to figure out what the object
type in your serialized files is, wouldn't it? ;)
What you can do:
- Deserialize the files on startup, into some object (let's call it MyServletConfig).
- Write or use (they are a dime a dozen out there) a FileWatchdog, which checks a file every x seconds to see if it has been modified. If so, it sends an event to your MyServletConfig or somewhere else, which re-reads the servlet config.
Yoav Shapira Millennium ChemInformatics
-----Original Message----- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:55 AM To: [EMAIL PROTECTED] Subject: question on storing application level config information
I have some config information that I set up for my servlets. This information is stored in serialized files. I will need my servlets to access this information in their normal processing. Is there some mechanism either in the servlet API or tomcat that will allow me to 'cache' this information and dynamically update the information as the serialized files are changed?
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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.
--
Mark Webb
Software Engineer
Dolphin Technology
474 Phoenix Drive
Rome, NY 13441-4911
Phone : 315.838.7000 : 315.838.7024
Fax : 315.838.7096
Email : [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]