Two Laptop Bag*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

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?


Mani
Quaerendo Invenietis
 
Consider Paul's rocket mass heater.
 
subject: Single Thread Model