Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

database configuration file

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From a user's point, a single file to configure database access will be easier to maintain. DBMS specific settings will be stored using the property files already available, but properties used by all JDBC drivers are stored in a seperate file. The user only have to change this file. I added a property for the database name, which is hardcoded by now.

/WEB-INF/config/database.properties:


/WEB-INF/config/database/mysql/mysql.properties


/WEB-INF/config/database/postresql/postgresql.properties


The database specific section in /WEB-INF/config/SystemGlobals.properties must be removed. A single property will be added instead:


changes in src/net/jform/ConfigPool.java

[originally posted on jforum.net by squizzz]
reply
    Bookmark Topic Watch Topic
  • New Topic