--- "Craig R. McClanahan"
<[EMAIL PROTECTED]> wrote:
> "Geir Magnusson Jr." wrote:

[snip]

> > And back to the issue, that is kinda my point : if
> you have a group of
> > developers committed to producing a top quality db
> connection pool for
> > general use, it's not clear that there is much one
> could do to enforce
> > API stability in an external way that makes sense.
>  At some point, you
> > have to trust someone involved with the project...
> >
> 
> My personal preferences in this regard are fairly
> simple -- publish APIs (or use
> existing ones where there are reasonable standards)
> that you promise reasonably
> stable contracts for, and innovate on the
> implementation(s) inside those APIs.
> When changes ultimately do occur, they should be
> designed to minimize the pain
> of adapting (through techniques like providing
> convenience base classes that
> most alternative implementations would have started
> from).
> 
> For a connection pool in particular, the relavant
> API (for my needs, at least)
> is javax.sql.DataSource -- I want to be able to plug
> in *any* connection pool
> that conforms to that interface and use it. 
> Turbine's pool (still) does not do
> this -- and that makes perfect sense, because it
> existed before the DataSource
> API was standardized.  Changing Turbine's pool to
> conform to this would break
> the contracts for all existing Turbine apps that use
> it, which would not be a
> Good Thing.
> 
> But in the mean time, without a wrapper around it 
> -- I'm about 75% done with
> this, but unfortunately the wrapper will have to be
> bigger than the entire code
> for the Struts connection pool :-( -- the Turbine
> connection pool is not useful
> to me.  Whether it is in a shared repository or not
> makes no difference.

Supporting DataSources seems like a prerequisite of a
current database-pooling mechanism, but it would be
very useful to also support a pooling pseudo-driver. 
Otherwise, DriverManager-based clients to the database
pool (which may even include non-Jakarta projects)
will be required to reach into their code to use the
pool.  Pseudo-drivers are a very elegant way to
prevent that.

=====
Morgan Delagrange
Britannica.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to