> -----Original Message----- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 04, 2005 1:25 PM > To: user@struts.apache.org > Subject: [OT] store web application specific data > > > Hi > I am working on a web application using struts, i have > some application speicific data which is in a xml file > in WEB-INF directory of my web application. > What is the best way to make this information > available through out the web application. > I dont want to read the xml file each time data is > required. > Currently while starting the application i read the > xml file and store the data in servlet context, and > then when i need the data i get it from there. > Is this a correct way of doing it,
Application context is there for such data, assuming you're not loading megabytes of it :) > Also how will it in affect in clustering ( which may > be in future) Not sure. > What about using JNDI (is there any good tutorial with > example of doing such kind of thing) Yuck. Probably. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]