From commons-user-return-7111-apmail-jakarta-commons-user-archive=jakarta.apache.org@jakarta.apache.org Thu Mar 25 12:27:10 2004 Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 47656 invoked from network); 25 Mar 2004 12:27:10 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Mar 2004 12:27:10 -0000 Received: (qmail 34422 invoked by uid 500); 25 Mar 2004 12:27:03 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 34387 invoked by uid 500); 25 Mar 2004 12:27:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 34372 invoked from network); 25 Mar 2004 12:27:02 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 25 Mar 2004 12:27:02 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B6Tws-0005MC-00 for ; Thu, 25 Mar 2004 13:27:02 +0100 Received: from user-3265.l2.c4.dsl.pol.co.uk ([81.79.172.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Mar 2004 13:27:02 +0100 Received: from ajp by user-3265.l2.c4.dsl.pol.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Mar 2004 13:27:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: commons-user@jakarta.apache.org From: Alan Pocklington Subject: RE: Digester and Threads Question Date: Thu, 25 Mar 2004 12:27:00 +0000 (UTC) Lines: 52 Message-ID: References: <000a01c411bd$ba498cd0$7153058f@carmani600m> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user-3265.l2.c4.dsl.pol.co.uk User-Agent: Xnews/5.04.25 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Many thanks for answering my question. That's a great help! Now I can get started. Alan. "James Carman" wrote in news:000a01c411bd$ba498cd0$7153058f@carmani600m: > As long as you use a new Digester each time (like as a local variable > inside a method), you'll be fine. What that means is that you CANNOT > use one single digester instance in multiple threads at the same time. > > -----Original Message----- > From: Alan Pocklington [mailto:ajp@pocko.freeserve.co.uk] > Sent: Wednesday, March 24, 2004 11:24 AM > To: commons-user@jakarta.apache.org > Subject: Digester and Threads Question > > 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? > > Please help, I'm confused. > > Thanks in advance, > > Alan. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org