You may have to syncronize only if the same instance of utility classes is
shared by all the requests. This could be the case if you have the utility
object defined as a instance variable in the servlet class.

If the utility objects get created for every request, then there is no need
of synchronizing as every request has its own utility object.

Kishore Raghavan


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc Krisjanous
Sent: Sunday, June 04, 2000 2:37 PM
To: [EMAIL PROTECTED]
Subject: Re: cookie


Hi all,
Sorry to post this message again but I did not get any replies.....
I have a servlet that creates utility classes for certain requests.  The
utility classes have instance variables.  Do I need to synchronized the
instantiation and method calls from the servlet to the utility classes?  The
utility classes manipulate data sent from client in request object.

Cheers

Marc

===========================================================================
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

===========================================================================
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