Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
[originally posted on jforum.net by squizzz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
/WEB-INF/config/database.properties:

[originally posted on jforum.net by squizzz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*aargh* please remove the entries no. 3 - 6. I got an error from JForum and therefore tried to find an input JForum accepts.
[originally posted on jforum.net by squizzz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

squizzz wrote:*aargh* please remove the entries no. 3 - 6. I got an error from JForum and therefore tried to find an input JForum accepts.



hhhmmm.. shit. I'm checking this error.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

squizzz wrote: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.



Nice, squizzz. I'll consider this approach to the next release .

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I found the problem that was raising the error.

JForum rc4 uses the beta version of connector/j, which does not handle well integers bigger than 32767. This problem does not occur in previous versions.
I changed the driver back to the alpha version until they fix this.

http://bugs.mysql.com/bug.php?id=4510

Rafael
[originally posted on jforum.net by Rafael Steil]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic