Hi,
I apologize in advance if this seems like a dumb question:
I've recently written my first servlet, and I guess due to a lack of
understanding on my part I gave the class a few member variables which
needed to be unique to each instance of the class.
Am I right in thinking that class member variables really just aren't a good
idea in servlets unless you want to share information between instances?
What I'd like to know is: is there a sensible way of having variables that
act like normal java class member variables (ie they're avaialble to all the
classes non-static functions) but which are safe to use without interfering
with other instances? Do I just need to make my class extend
SingleThreadModel?
Thanks,
Ben
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html