Search code examples
javaspringhibernatewebtapestry

Configuration parameters in web application (Java+Spring+Hibernate+Tapestry)


I'm developing a web application and I need to save about 100 configuration parameters. What is the best solution?:

  • Make a XML file and parse it for read the configuration.
  • Make a table in database, and consult it for read the configuration.
  • Another better solution?

Thanks.


Solution

  • What is usually done in this case is that the configuration parameters are stored in properties files that are then loaded by Spring.

    In the event that you have parameters that can be changed during the execution of the application, then a fairly simple way to approach the problem would be to save them in the database