A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Is SAXParser in JDK6 thread-safe?
Joined: Jun 03, 2008
Jul 09, 2008 11:43:00
Can anyone tell me if the
in JDK 6 is thread-safe or not?
In my application I want to have a single
(configured to use a predefined set of schemas), and have several threads use it for parsing their XML.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 09, 2008 12:08:00
Since an SAX parser has to keep track of state and can only be attached to one input source, a single instance is NOT thread-safe.
Perhaps you were thinking of using a single instance of
since it is the factory that gets configured with a schema, etc.
Java Resources at
subject: Is SAXParser in JDK6 thread-safe?
JDBC -con.string from xml
XMLReader versus SAXParser
Spring JMS vs MDB
vetor thread safe?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014