struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: [OT] store web application specific data
Date Tue, 04 Jan 2005 21:09:51 GMT


> -----Original Message-----
> From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com]
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message