Subject | Database connection |
---|---|
Author | Richard Drent |
Post date | 2004-01-16T15:27:38Z |
Hi to all,
I would like to set in one place the database connection variables like
Class.forName ("org.firebirdsql.jdbc.FBDriver") ;
java.sql.Connection connection = java.sql.DriverManager.getConnection
("jdbc:firebirdsql:192.168.0.115/3050:
/home/firebird/data/database.fdb?lc_ctype=ISO8859_1","SYSDBA","passwd");
so if the database or passwd change, I only have to change it at one place.
Thus some one have an idea or example?
Greetz richard
I would like to set in one place the database connection variables like
Class.forName ("org.firebirdsql.jdbc.FBDriver") ;
java.sql.Connection connection = java.sql.DriverManager.getConnection
("jdbc:firebirdsql:192.168.0.115/3050:
/home/firebird/data/database.fdb?lc_ctype=ISO8859_1","SYSDBA","passwd");
so if the database or passwd change, I only have to change it at one place.
Thus some one have an idea or example?
Greetz richard