On Tue, 2004-03-16 at 10:28, Victor Ng wrote:
> Am I correct in thinking that Webware shares servlet instances
> between
> incoming requests?

Hi Victor,

A servlet instance will (by default) be used by multiple threads throughout
its lifetime, although it will not be used my multiple threads concurrently.
So it is possible to set up thread-specific variables in a servlet, as long
as you clean them out in servlet.sleep()

> If that's the case - is there a way to kick webware into the
> equivalent
> of 'SingleThreadModel' where I have a different instance of the
> servlet
> for each request thread?

Not exactly, but if you need to you can set CacheServletInstances to 0 in
Application.config so that you get a brand new servlet for every single
request.  If you do a lot of caching within your servlets this will hurt
your performance, but it may well be an acceptable solution.

peace,
Jason



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to