• 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

mysql.properties question

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

Where in the JForum source code is mysql.properties (or any other db specific property file) read? I tried changing ConfigKeys.java and using my own
property reader to populate some constants, but they are still read from mysql.properties. I did the following,

public static final String DATABASE_CONNECTION_HOST = properties.getDbAddress();

where properties is my own property loader class, this is though bypassed by JForum and instead the hostname is read via mysql.properties. I even tried hard coding the constant DATABASE_CONNECTION_HOST to "test" but it's still read through mysql.properties.

Thanks!
[originally posted on jforum.net by bubblare]
 
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
In JForumBaseServlet.java, method startFrontController()..

Rafael
[originally posted on jforum.net by Rafael Steil]
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic