[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] multiple parser objects
- From: David Brownell <david-b@pacbell.net>
- To: Laura Hatcher <lhatcher@argoneng.com>, xml-dev <xml-dev@lists.xml.org>
- Date: Thu, 20 Sep 2001 11:57:50 -0700
> Does anyone know if Xerces for Java can handle multiple requests to
> parse at the same time. Let's say for example that everytime an XML
> file is received from a remote location that it spawns a new thread that
> will parse the XML data and do with it what it will.
No SAX parser is expected to handle concurrency like that.
One thread at a time per object, that's the rule.
You can maintain a pool of parsers, and have each thread grab
an unused parser from the pool, if it costs too much to create
a parser.
- Dave