title: Spring - how to load configuration from database?
body: <p>I need to load configuration settings used in applicationContext.xml from relational database (PostgreSQL).</p>
  
  <p>I followed this article <a href="http://www.codeproject.com/Articles/28893/Loading-Application-Properties-from-a-Database" rel="nofollow">http://www.codeproject.com/Articles/28893/Loading-Application-Properties-from-a-Database</a> but it uses a deprecated "Spring Modules" jar file.</p>
  
  <p>Is there some another technique how to achieve it? I use Spring 3.</p>
  
  <p>My idea is to set only access setting to database (hostname, dbname, username, password) for creating a datasource and probably create some own handler class(?) for loading setting from DB. In applicationContext.xml I will use settings in the same way - ${foo.bar}.</p>
  
  <p>Plesase share your experience and code examples with this topic and Spring 3.</p>