xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Is the instance of "nu.xom.Builder" thread security ?
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Is the instance of "nu.xom.Builder" thread security ?
- Date: Wed, 19 Dec 2007 06:03:56 -0500
Jin Xu wrote:
Hello:
Is the instance of "nu.xom.Builder" thread security, please ?
Not, specifically, know. I recommend using a separate Builder object in each thread, perhaps stored in a ThreadLocal.
Since Builder depends heavily on an underlying SAX parser, and since those aren't thread-safe there really isn't any obvious way to make a Builder thread-safe.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
-
[XOM-interest] Is the instance of "nu.xom.Builder" thread security ?,
Jin Xu, 12/18/2007
- Re: [XOM-interest] Is the instance of "nu.xom.Builder" thread security ?, Asgeir Frimannsson, 12/18/2007
- Re: [XOM-interest] Is the instance of "nu.xom.Builder" thread security ?, Elliotte Rusty Harold, 12/19/2007
Archive powered by MHonArc 2.6.24.