Re: Default configuration file

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'Ned Wolpert'" <wolpert(at)yahoo(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>, "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "'Dave Cramer'" <Dave(at)micro-automation(dot)net>, "'Barry Lind'" <barry(at)xythos(dot)com>
Subject: Re: Default configuration file
Date: 2001-11-02 17:59:54
Message-ID: 022301c163c8$2d9fa210$c201a8c0@inspiron
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Ned,

Looks good so far... I haven't had a chance to really read it, but I am
wondering about a synchronized method that can block? Specifically
getPooledConnection.

Dave

-----Original Message-----
From: Ned Wolpert [mailto:wolpert(at)yahoo(dot)com]
Sent: November 2, 2001 12:22 PM
To: pgsql-jdbc(at)postgresql(dot)org; Bruce Momjian
Cc: Dave Cramer; Barry Lind
Subject: Default configuration file

Folks-
I'm not sure that the mailing list is working, but I wanted to send
this
to the group. I've got two files that help with default configuration.
The first is the DefaultProperties.java file, which belongs in the
org/postgresql/util directory. This file contains methods to get, well,
default properties. The default properties can either the system
defaults
in the org/postgresl/psqlProps.properties file (which I included as
well)
or the user defined psqlProps.properties.

Both files should be included in the jars that are built, and are not
java version specific. They use standard property classes, and are
minimal in size. A singleton reference to the class is there as well,
so different components can share it. Properties can be reloaded.

Finally, note that the user defaults override the system defaults, but
the user psqlProps.properties doesn't need to contain all the system
ones.
Just the ones they want changed.

I've included the two files here, and copies are at my website
(http://members.home.net/wolpert5/code/) Let me know of any problems or
suggestions. I'm going to use this for the pooling code I'm going to
contribute.

Thanks

=====
Virtually, | "Must you shout too?"
Ned Wolpert | -Dante
wolpert(at)yahoo(dot)com |
_________________/ "Who watches the watchmen?"
4e75 -Juvenal, 120 AD

-- Place your commercial here -- fnord

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ned Wolpert 2001-11-02 18:22:45 Re: Default configuration file
Previous Message Ned Wolpert 2001-11-02 17:21:50 Default configuration file