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

Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1098


What is the difference between Servlets and Applets?

1092


What are the different session tracking techniques?

1243


what do you understand by url rewriting?

1007


How do we go with database connection and log4j integration in servlet?

1237


What are the functions of Servlet container?

1172


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1146


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

1252


What is meant by a servlet?

1141


List some life cycle methods of a servlet.

1110


What is http servlet in java?

1118


What are the objects involved when a servlet receives a call from client?

1092


What is httpservlet and how it is different from genericservlet?

1163


What are the steps involved in placing a servlet within a package?

1116


What is the inter-servlet communication?

1220