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 the difference between the include() and forward() methods?

1084


How do you run a servlet?

1059


Explain the role of dispatcherservlet and contextloaderlistener.

1194


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

1028


What is the main purpose of java servlets?

1061


What is java servlet session?

975


What are the life cycle methods of the servlet?

1089


Can you send an authentication error from a servlet?

974


Can we use the constructor, instead of init(), to initialize servlet?

1099


What is the procedure for initializing a servlet?

1039


How can you use a servlet to generate a plain text instead of html?

1132


What is getservletcontext?

1075


What is servlet and how it works?

973


What is httpservlet and how it is different from genericservlet?

1101


What do you mean by web applications?

1205