[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] multiple parser objects
- From: David Brownell <firstname.lastname@example.org>
- To: Laura Hatcher <email@example.com>, xml-dev <firstname.lastname@example.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