File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Make it so: Java DB Connections & Transactions
this week in the
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.
I agree. Here's the link:
subject: Is SAXParser in JDK6 thread-safe?
Spring JMS vs MDB
JDBC -con.string from xml
vetor thread safe?
XMLReader versus SAXParser
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015