This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes About SingleThreadModei Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "About SingleThreadModei Interface" Watch "About SingleThreadModei Interface" New topic
Author

About SingleThreadModei Interface

chandra kunchala
Greenhorn

Joined: Aug 06, 2008
Posts: 17
Dear ALL,

can you tell me the main purpuse of SingleThreadModel Interface.
i think so it was deprecated from servlet 2.3 version
till yet there is no alterenative for SingleThreadModel Interface i mean to say upto servlet 2.5 v right?

i want to know that what is the main puropuse of SingleThreadModel Interface. why it was deprecated from servlet 2.3 version


regards
chandra SCJP5.0 97%


Thanks & Regards
Chandra SCJP5.0
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The STM interface was meant to make servlets thread-safe by making sure that no two threads ran the same servlet instance at the same time. But over time it became clear that this is not sufficient to make web apps thread-safe; there are other concurrency issues (having to do with sessions and context attributes). So it was decided to abandon this nonfunctional approach to thread safety. The burden to make web apps thread-safe now lies solely with the application developer.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: About SingleThreadModei Interface
 
It's not a secret anymore!