First, never use SingleThreadModel in production. Second, not if the variable is synchronized in its home class.
Mark ----- Original Message ----- From: "Mukul Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 12:24 AM Subject: Static variables and Thread safety > Hi, > > If a servlet calls a static method in another class, supposing that the > class on which we are invoking the method has got static variables which are > modified by the call to the method in the class. Will this kind of scenario > lead to some inconsistent results if the servlet does not implement the > SingleThreadModel? > > Thanks, > > MS > > ___________________________________________________________________________ > 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 > > ___________________________________________________________________________ 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