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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
Using 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 another 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 Anonymous]
 
What a show! What atmosphere! What fun! What a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic