Do you know of an open-source implementation that does provide process
pooling?  (Synchronization alone isn't good enough in my case as I want to
spread the work over multiple processors.)

The whole point of the search is to avoid the time spent writing my own
pooling service.

----- Original Message ----- 
From: "Yoav Shapira" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 5:52 PM
Subject: Re: Java Process Pool


> Howdy,
> Commons-pool is a generic pooling framework.  It's not specific (and in
fact
> not that good, because of sync issues) for threads.  Similarly, it's not
> specific to Processes.  You would just use GenericObjectPool.  If you want
to
> synchronize things (or otherwise control thread-safety), you'd have to
> subclass/wrap GenericObjectPool yourself.
>
> In fact, come to think of it, SynchronizedGenericObjectPool may not be
that bad
> an addition to commons-pool.
>
> Yoav Shapira
>
>
> --- James Carpenter <[EMAIL PROTECTED]> wrote:
> > What pool implementation of the Commons-Pool utility provides process
based
> > pooling as opposed to thread based pooling?  Remember that I need a
process
> > pool to circumvent issues with my JNI extended java code not being
thread
> > safe.  (The underlying C library being wrapped isn't thread safe.)
> >
> > http://jakarta.apache.org/commons/pool/
> >
> > ----- Original Message ----- 
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 02, 2003 1:40 PM
> > Subject: RE: Java Process Pool
> >
> >
> >
> > Howdy,
> > You can use commons-pool for this.
> >
> > The approach itself (pooling processes) is risky and likely to be
> > non-portable.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> > >-----Original Message-----
> > >From: James Carpenter [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, July 02, 2003 4:38 PM
> > >To: tomcat users list
> > >Subject: Java Process Pool
> > >
> > >Does anyone know of a convenient way to create a Java process pool.  A
> > >thread pool won't work as I am trying to pool some JNI code wrapping a
> > C
> > >library that isn't thread safe.
> > >
> > >I would rather not have to create my own pooling mechanism.
> > >
> > >Sincerely,
> > >James Carpenter
> > >Email: [EMAIL PROTECTED]
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business
> > communication, and may contain information that is confidential,
proprietary
> > and/or privileged.  This e-mail is intended only for the individual(s)
to
> > whom it is addressed, and may not be saved, copied, printed, disclosed
or
> > used by anyone else.  If you are not the(an) intended recipient, please
> > immediately delete this e-mail from your computer system and notify the
> > sender.  Thank you.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> =====
> Yoav Shapira
> [EMAIL PROTECTED]
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to