Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Michael <mpalmer@uw...> - 2005-03-30 01:34:33
If I got it right, you have a servlet instance to yourself for the
duration of one request. After that request is finished, the servlet
instance waits for the next one, so that self.var_name, once set, would
linger and be transferred between requests. This may or be not a
problem. I use a servlet base class that takes a snapshot of
self.__dict__.keys in 'awake', and then uses that to throw out any new
entries from its __dict__ once the request finishes (i.e., in the
'sleep' method). I then and use self.var_name freely. M.
> Is it safe to use self.var_name in a webware serlvet across different
> methods in that servlet ? Does webware provide a unique object per
> request/thread ?
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> Webware-discuss mailing list
Department of Chemistry
University of Waterloo
2oo University Ave West
Waterloo, ON N2L 3G1
Phone 519 888 4567 ext 5100
Fax 519 746 0435
Office ESC 234