Skip to Content.
Sympa Menu

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

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT>
  • To: xom-interest <xom-interest AT>
  • 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:
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
Java I/O 2nd Edition Just Published!

Archive powered by MHonArc 2.6.24.

Top of Page