Click to See Complete Forum and Search --> : db.properties format


kleelof
08-02-2010, 01:32 AM
Hello,

I went through this tutorial:
http://www.webdevelopersjournal.com/columns/connection_pool.html

But I am having a hell of a time figuring out what the db.properties file should look like. eg; what fields should be in it and their format.

If anyone here has a db.properties file that works with the DBConnectionManager class described in the tutorial, could you post it here so I can see what it needs to look like.

thanks,
lee

sohguanh
08-02-2010, 10:24 PM
Hello,

I went through this tutorial:
http://www.webdevelopersjournal.com/columns/connection_pool.html

But I am having a hell of a time figuring out what the db.properties file should look like. eg; what fields should be in it and their format.

If anyone here has a db.properties file that works with the DBConnectionManager class described in the tutorial, could you post it here so I can see what it needs to look like.

thanks,
lee

In the URL you provided, I found below.

Below is an example of a db.properties file for a Windows platform, with one pool for an InstantDB database and one pool for an MS Access database accessed through an ODBC Data Source Name (DSN) demo.

drivers=sun.jdbc.odbc.JdbcOdbcDriver jdbc.idbDriver
logfile=D:\\user\\src\\java\\DBConnectionManager\\log.txt

idb.url=jdbc:idb:c:\\local\\javawebserver1.1\\db\\db.prp
idb.maxconn=2

access.url=jdbc:odbc:demo
access.user=demo
access.password=demopw

kleelof
08-02-2010, 11:32 PM
:rolleyes:

thanks.