Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to make servlet thread safe?

Answer Posted / surjit

We can make a servlet thread by implementing the SingleThreadModel interface.
i.e
Public class EmployeeTest extends HttpServlet implement SingleThreadModel{

Service(){
write yor code..........
}

}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is called servlet container?

1037


What are the mechanisms used by a servlet container for maintaining session information?

973


Why do you use session tracking in httpservlet?

1071


What exactly are the functions of servlet?

1034


What’s the difference between sendredirect and forward methods

1009


How to get the IP address of client in servlet?

1027


What are the kinds of http requests?

986


How to find whether a parameter exists in the request object?

1056


How can the referrer and the target urls be used in servlet?

948


How can a servlet be used to generate plain text instead of html?

903


Can we fetch the attributes related to a servlet on a different servlet?

1083


What does the term localization refer to?

1035


What are the phases of a servlet life cycle?

1053


What is the directory structure of web application?

924


Explain the custom jsp tags and the beans.

1009