I think it depends on the scope of the object you are
dealing with. If it has application scope and multiple
sessions try to use the same object (static or
non-static data) then you have to make sure the
critical sections are locked while doing
modifications.


Venkat


--- Phil Swenson <[EMAIL PROTECTED]> wrote:
> If I have a static method I'm calling from a JSP
> such as:
>
> public static String cleanString(String s, String
> validCharSet)
>
> Do I need to synchronize it?  I'm assuming I don't
> unless it accesses static
> data.  Is this correct?
>
> Thanks!
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

__________________________________________________
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to