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

Why the container loads server at the application startup and how?

1018


What is war file?

1035


Which exception is thrown if the servlet is not initialized properly?

981


What is Client-Server Computing?

2360


How does tomcat servlet container work?

1027


Explain the jar and war files in servlet?

1047


What are the different session tracking techniques?

1152


What is a web application and what is it’s directory structure?

1034


What is servlet mapping?

978


Which protocol will be used by browser and servlet to communicate

1008


Which httpsession object is used to view and manipulate information about a session?

1120


What is setattribute in servlet?

1074


What is session tracking?

1157


How to get the current httpsession object?

1080


What is the procedure for initializing a servlet?

987