jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert burrell donkin" <robertburrelldon...@gmail.com>
Subject Re: Re: is jackrabbit Threadsafe?
Date Mon, 16 Oct 2006 21:05:22 GMT
On 10/16/06, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:
> On 10/16/06, robert burrell donkin <robertburrelldonkin@gmail.com> wrote:
> > (could people please avoid top posting: it makes it very difficult to
> > include enough context)
> >
> > On 10/16/06, Ted Roeloffzen <ted.roeloffzen@gmail.com> wrote:
> > > In what way would that influence the performance?
> >
> > (see below)
> >
> > > On 10/16/06, robert burrell donkin <robertburrelldonkin@gmail.com> wrote:
> > > >
> > > > On 10/16/06, Miro Walker <miro.walker@gmail.com> wrote:
> > > > > This is something we have developed in-house for a client. I'll have
> > > > > to ask our client about the possibility of contributing back (and
see
> > > > > how feasible it is to unpick it from the application itself), but
if
> > > > > they agree I'm happy to do so.
> > > >
> > > > if that's not possible, it should be possible to use jakarta commons-pool
> >
> > commons-pool is an object pool. one use case is connection pooling for
> > data sources. session pooling sounds like another good match.
> >
>
> I don't know much about commons-pool, so here are a couple of
> questions before further investigating:
>
> - can you configure commons-pool to grow/shrink appropriately?

it's reasonable configurable but the question of appropriateness
depends on the application

http://jakarta.apache.org/commons/pool/apidocs/org/apache/commons/pool/impl/GenericObjectPool.html

> - can you configure commons-pool with some code that should be used to
> create new objects available in the pool?
> - can you configure commons-pool with some code that should be used to
> destroy/clean objects from the pool?

both these are managed by a factory

http://jakarta.apache.org/commons/pool/apidocs/org/apache/commons/pool/PoolableObjectFactory.html

- robert

Mime
View raw message