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 / monkyspiderpig

The only thing you need to do is to define only static
variables at Class level. When a method is called each
thread gets a new variable.

Is This Answer Correct ?    8 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet instance?

1047


Why doesn’t a servlet include main()?

1042


explain the advantages of servlet life cycle?

974


What is servlet lazy loading?

1161


Can we refresh servlet in client and server side automatically?

1046


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1095


What do you mean by mime type?

974


Explain the difference between servlet and cgi?

1160


How do you communicate in between Applets and Servlets?

1061


Are Servlets Thread Safe? How to achieve thread safety in servlets?

966


Explain servlet events?

1004


Why doesn’t a servlet include main()? How does it work?

1153


What is context in servlet?

1031


How do I support both get and post from the same servlet?

1205


Why do we use sendredirect() method?

968