Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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]
 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic