File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Single Thread Model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Single Thread Model

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
A servlet implements Single Thread model
public class BasicServlet extends HttpServlet implements SingleThreadModel {

int number = 0;
public void service(HttpServletRequest req, HttpServletResponse res) {
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
So, where is the question?

Quaerendo Invenietis
It is sorta covered in the JavaRanch Style Guide.
subject: Single Thread Model
jQuery in Action, 3rd edition