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

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed Dec 19 06:03:56 EST 2007


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/


More information about the XOM-interest mailing list