my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Single Thread Model" Watch "Single Thread Model" New topic
Author

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.
Put
implements SingleThreadModel
at the start of the class declaration.
Take a look at the resources I mentioned in
response to your question about sessions.
HTH,
Joe
senthil narayan
Greenhorn

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Single Thread Model
 
Similar Threads
single thread or multi thread ?
Is Servlet SingleThread Model or Multithread Model by default?
synchronized(page) is jsp
Thread Models
Variable Integrity---I'm scared!!!