cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Are XSP Pages singletons?
Date Fri, 01 Sep 2000 22:22:10 GMT
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.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message