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 / October 2006

Tip: Looking for answers? Try searching our database.

Where to store modified properties/config files for web apps?

Thread view: 
unomystEz - 24 Oct 2006 07:00 GMT
Hi all,

  I have a war file that includes default config files that should be
overridden by the user.  However when a new war file is deployed it
will overwrite the files.  Where would be a good place to store custom
config files used by servlets and/or webapps?

Thanks in advance
Manish Pandit - 24 Oct 2006 07:30 GMT
Hi,

Not sure if I got your question correctly, but are the properties
overridable by the user? If so, then you should be storing the
properties/configuration in the database against every user.

-cheers,
Manish
Thomas Hawtin - 24 Oct 2006 16:42 GMT
>    I have a war file that includes default config files that should be
> overridden by the user.  However when a new war file is deployed it
> will overwrite the files.  Where would be a good place to store custom
> config files used by servlets and/or webapps?

Are you looking for JNDI, perhaps?

Tom Hawtin
unomystEz - 29 Oct 2006 17:00 GMT
> >    I have a war file that includes default config files that should be
> > overridden by the user.  However when a new war file is deployed it
[quoted text clipped - 4 lines]
>
> Tom Hawtin

Hi sorry for the delay.  I have a war file that needs to be customized
not on a per-user basis but on a per-deployed basis - ie, the war file
needs to know the address of a smtp server, the addresses to other web
services, maybe it also opens up a dedicated TCP server socket and that
has to be configured.  I don't like the idea of using a database to
store custom settings as you never know what may happen to the
database. Ini files or properties file seems to be much more simple.
JNDI I think is mostly used for configuring services on a
application-container scale.

This particular war file can also be deployed multiple times in a
single container and would need to be configured differently.  So for
server apps that need custom config files, im not sure where or how you
would store the custom configs.

Thanks


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.