From stefano@apache.org Fri Sep 1 23:01:39 2000 Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 24781 invoked from network); 1 Sep 2000 23:01:39 -0000 Received: from pop.systemy.it (194.20.140.28) by locus.apache.org with SMTP; 1 Sep 2000 23:01:39 -0000 Received: from apache.org (pv5-pri.systemy.it [194.21.255.5]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id BAA09380 for ; Sat, 2 Sep 2000 01:01:34 +0200 Message-ID: <39B02C12.895C330D@apache.org> Date: Sat, 02 Sep 2000 00:22:10 +0200 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en,it MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Are XSP Pages singletons? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Ed Staub wrote: > > Are XSP pages singletons, like Servlets? > > In other words, can class variables be used dynamically without fear of > thread collision? I wouldn't even dare trying: this is a sure way to get trouble in a server enviornment... And, anyway, servlets are not singletons at all: it's up to the container to choose how many instances there are if you don't implement SingleThreadModel (which is totally stupid and many of us on the Servlet API JSR want to deprecate) -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- Missed us in Orlando? Make it up with ApacheCON Europe in London! ------------------------- http://ApacheCon.Com ---------------------