/    Sign up×
Community /Pin to ProfileBookmark

db.properties format

Hello,

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

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

to post a comment
Java

2 Comments(s)

Copy linkTweet thisAlerts:
@sohguanhAug 03.2010 — 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[/QUOTE]


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:usersrcjavaDBConnectionManagerlog.txt

idb.url=jdbc:idb:c:localjavawebserver1.1dbdb.prp

idb.maxconn=2

access.url=jdbc:odbc:demo

access.user=demo

access.password=demopw
Copy linkTweet thisAlerts:
@kleelofauthorAug 03.2010 — :rolleyes:

thanks.
×

Success!

Help @kleelof spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...