Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 56893 invoked from network); 24 Mar 2004 16:30:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 16:30:56 -0000 Received: (qmail 85689 invoked by uid 500); 24 Mar 2004 16:30:08 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 85670 invoked by uid 500); 24 Mar 2004 16:30:08 -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 85628 invoked from network); 24 Mar 2004 16:30:08 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 24 Mar 2004 16:30:08 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B6BGc-0004GB-00 for ; Wed, 24 Mar 2004 17:30:10 +0100 Received: from user-4369.l4.c4.dsl.pol.co.uk ([81.79.241.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 17:30:10 +0100 Received: from ajp by user-4369.l4.c4.dsl.pol.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 17:30:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: commons-user@jakarta.apache.org From: Alan Pocklington Subject: Digester and Threads Question Date: Wed, 24 Mar 2004 16:24:17 +0000 (UTC) Lines: 24 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user-4369.l4.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 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