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 configure a centralized error handler in servlets?

1151


How would you create deadlock on your servlet?

1224


What is the use of servletconfig interface?

1085


How forward () method is different from send redirect () method?

1024


What are the features added in Servlet 2.5?

1318


What do you mean by session tracking?

1273


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

1094


How do you find out what client machine is making a request to your servlet

1105


What's the use of servletcontext?

1194


Explain the architechure of a servlet?

1164


What do you mean by the servlet chaining?

1144


What are different Authentication options available in Servlets.

1126


What is the difference between the include() and forward() methods?

1125


If some new data has entered the database, explain how can a servlet refresh automatically?

1350


What are the common methods that are included in the http servlet class?

1083