• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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 is 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. Also, 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]
 
Those are the largest trousers in the world! Especially when next to this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic