You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Berin Loritsch <bl...@apache.org> on 2001/01/29 14:57:01 UTC

Re: [C2][feature request][Datasource components] get-by-name +no-pooling

Donald Ball wrote:
> 
> On Sun, 28 Jan 2001, Berin Loritsch wrote:
> 
> > a minimum amount of connections.  The maximum is a hard maximum, and
> > the getConnection() would fail if an additional one was needed--I need
> > to look at waiting for one to free up though.  The minimum is a soft
> > minimum meaning that at least the minimum number of connections will
> > be held in reserve unless we would have more than the hard maximum.
> 
> that oughtn't be terribly difficult, but i'd like it to be configurable.
> sometimes i'd want it to fail, sometimes i'd want it to wait (for a
> certain of time, anyway).

I was thinking about adding a timeout parameter to the pool-controller
element.  If the timeout passes before a connection is returned, then
you have a failure.  It would be configurable--and 0 (the default) would
mean a hard failure without waiting.