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.
Huy wrote:
Hi,
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 ?
Thanks
Huy
-------------------------------------------------------
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.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss
--
Michael Palmer
Department of Chemistry
University of Waterloo
2oo University Ave West
Waterloo, ON N2L 3G1
Canada
Phone 519 888 4567 ext 5100
Fax 519 746 0435
Office ESC 234
Lab C2-360
Web http://sciborg.uwaterloo.ca/~mpalmer/
-------------------------------------------------------
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.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss