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
Bookmark "Single Thread Model" Watch "Single Thread Model" New topic

Single Thread Model

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
How do you implement Single Thread Model in servlets?
Joe Gilvary
Ranch Hand

Joined: May 11, 2001
Posts: 152
Not difficult that.
implements SingleThreadModel
at the start of the class declaration.
Take a look at the resources I mentioned in
response to your question about sessions.
senthil narayan

Joined: Jan 25, 2002
Posts: 13
Yes you can implement single thread model interface by implementing it in servlet class.but it affects performance very much so please see it whether it is actually needed.
I agree. Here's the link:
subject: Single Thread Model
It's not a secret anymore!