Alex Rivera | Logout

Web-application configuration outside or inside war file?

Asked 2010-02-26T13:16:13.197
13

A web application usually has at least one configuration file, that contains jdbc configuration and other settings. You can put such file(-s) inside a .war file or outside it. What are the cons and pros of these approaches? What is your approach and why?

Edit
Report

1 Answer

2

In my opinion an application setting value should never be merged with a binary. They should be placed in a separate file or database. This is a basic best practice. You never know when you or anyone else will need to adjust one of the settings -- and you may not be around -- or the source code may not be available.

answered 2011-11-23T18:08:35.423

Your Answer