OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] multiple parser objects



> 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