commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Priblouda <kpriblo...@yahoo.com>
Subject Re: Digester and Threads Question
Date Wed, 24 Mar 2004 16:40:37 GMT

--- Alan Pocklington <ajp@pocko.freeserve.co.uk>
wrote:
> Hi,
> 
> I want to use the Digester in a web application to
> parse XML documents on 
> the fly.  Basically, the user logs in and his
> corresponding XML file is 
> loaded from the database, parsed using Digester and
> displayed to the user 
> for manipulation.
> 
> I'm concerned about the following line in the
> JavaDoc:
> 
> "A single Digester instance may only be used within
> the context of a single 
> thread at a time, and a call to parse() must be
> completed before another 
> can be initiated even from the same thread."
> 
> I'm not sure if I fully understand what this is
> saying. Will this mean I 
> will face problems using the Digester in the above
> way in a web 
> application?  Is it saying that I can use only one
> digester instance to 
> service all requests, or will it be okay to put
> Digester code in my servlet  
> which will create a Digester for each request?

Single request is typically processed in the same
thread, so I will say you will get no problems.

And any user manipulation will happen in separate
request -> separate thread. 

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message