On Thu, 28 Oct 1999, Nanduri Amarnath wrote:
> I am calling a servlet from a jsp. The servlet implements the
> SingleThreadModel.
> My question is... if different people hit this page simultaneously, will i still
> be getting unique primary keys for every person
> (or) if not is there a better way to do it......... Thanks in advance.
SingleThreadModel will only guarantee that the same instance of a servlet
cannot have multiple threads invoking its service() method (doPost() is
called from within service()) concurrently.
Servlet containers are free to create multiple instances of a servlet in
order to handle load. So you won't be guaranteed the behavior you want
from the database.
Wes
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html