Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Is the instance of "nu.xom.Builder" thread security ?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • 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/




Archive powered by MHonArc 2.6.24.

Top of Page