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

How do you invoke a servelt?

1071


What are the exceptions thrown by servlets? Why?

1110


What is servlet collaboration?

1108


What is servlet initializer?

919


What is dispatcher servlet?

1017


Why is http protocol called as a stateless protocol?

960


Explain the architechure of a servlet?

1065


What’s the difference between sendredirect and forward methods

1023


Why do we have servlet listeners?

1031


What is the difference between the http servlet and generic servlet?

1098


How to get the actual path of servlet in server?

1181


What's the use of servletcontext?

1104


Why is init() method is used in servlets?

968


What is meant by servlet? What are the parameters of the service method?

973


What are the life-cycle methods for a servlet?

949