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 are the phases of servlet life cycle?

1057


what do you understand by url rewriting?

900


What is servlet container. how it works?

1088


Why servlet is faster than jsp?

1009


What are the annotations used in servlet 3?

994


What is http servlet?

1015


What's the advantages using servlets than using cgi?

946


How can we refresh automatically when new data is entered into the database?

1046


How the servlet is loaded?

1009


How servlets are deployed in java?

964


What is the default http method in the servlet?

1236


What is the difference between jsp and servlet life cycle?

1174


What do you mean by a filter and how does it work?

898


What is cgi and what are its drawbacks?

980


What is the life cycle of a servlet?

1424