[Webware-discuss] Re: [ZODB-Dev] Webkit Threading and ZODB 3.
3a2: problems on Windows
Geoffrey Talvola
gtalvola at nameconnector.com
Thu Feb 19 14:17:59 EST 2004
Matt Feifarek wrote:
> I don't believe that this is the case. I think that a servlet instance
> stays in a thread, and is destroyed if the AppServer needs the thread
> for another servlet.
No. A servlet will be used in one thread to handle a request, then it will
be put back into the servlet pool, and later it will be used in another
thread to handle another request. This is the same on every platform --
Linux, Windows, whatever. A servlet instance is never used by more than one
thread at the SAME TIME, but it is definitely used by more than one thread
over the lifetime of the servlet instance.
It seems to me that as long as you're not storing ZODB-managed data IN the
servlet instance somehow, this would cause no problems.
- Geoff
More information about the ZODB-Dev
mailing list