Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

webapps: where to store configuration files?

Thread view: 
Moiristo - 24 Jul 2006 22:10 GMT
I use resource bundles in my webapp to read .properties-files, which
contains configuration files and button text. The problem is that these
files are contained within the webapp. If someone redeploys the webapp
using the WAR file, the configuration files are overwritten and
configuration data is lost. Where should I save this data?

TIA,

Moiristo
Vincent van Beveren - 25 Jul 2006 14:58 GMT
> I use resource bundles in my webapp to read .properties-files, which
> contains configuration files and button text. The problem is that these
> files are contained within the webapp. If someone redeploys the webapp
> using the WAR file, the configuration files are overwritten and
> configuration data is lost. Where should I save this data?

You could use the Preferences object to save data in the registry. If
all fails you could store the database URL in the registry and create a
config table with key/value pairs. Another option is to specify a 'data'
location in the web.xml, or pass it as a system property at run-time.
You can also configure your app using JMX for example. There are many
ways :)

good luck,
Vincent


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.