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

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

1062


Explain is servlet mapping?

1010


What are the difference between session and cookies in servlet? Explain

1044


What is the advantage of Servlets when compared with other server side technologies?

2347


How many objects of a servlet is created?

1276


Explain the architechure of a servlet?

1123


What is the use of servletconfig interface?

1049


Should I override the service() method?

1092


Explain servlet life cycle?

1133


Why is Servlet so popular?

1074


Why servlet is mostly used?

1243


Describe in brief RequestDespatcher?

1139


What are the important functions of filters?

1149


Why do you use session tracking in httpservlet?

1137


What is the procedure for initializing a servlet?

1041