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

U

unomystEz

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
 
M

Manish Pandit

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
 
T

Thomas Hawtin

unomystEz said:
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
 
U

unomystEz

Thomas said:
Are you looking for JNDI, perhaps?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,991
Messages
2,570,212
Members
46,800
Latest member
Tobi1987

Latest Threads

Top