I can suggest some patterns for such scenario. You can user Singlaton pattern . Read the xml file put the key, values in some sort of map. Now whoever needs the configuration information will do so by calling some functions from a class which takes care of all the issues. like modification of the info by others
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cheers Ashwani Kalra Sr. Mem. Dev. Staff Aithent Technologies India http://www.geocities.com/ashwani_kalra/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Philip M. Meier Sent: Thursday, January 10, 2002 3:38 AM To: [EMAIL PROTECTED] Subject: XML-Parsing Hello List, I've a problem parsing xml-data! When should I read in the data stored in the xml-file? At every query the data is needed or once when the application is started for the first time and at every restart of the container? When using the second possibility where to store the data inside the application after the data were read in? The data I want to read in is basicly configuration data, which is important for the whole application! Thanks in advance, Philip =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com