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...

Why should we go for interservlet communication?

Answer Posted / imtiyaz

There are three major reasons to use interservlet
communication:

Direct servlet manipulation
A servlet can gain access to the other currently loaded
servlets and perform some task on each. The servlet could,
for example, periodically ask every servlet to write its
state to disk to protect against server crashes.

Servlet reuse
One servlet can use another's abilities to perform a task.
Think back to the ChatServlet from the previous chapter. It
was written as a server for chat applets, but it could be
reused (unchanged) by another servlet that needed to
support an HTML-based chat interface.

Servlet collaboration
The most common, situation involves two or more servlets
sharing state information. For example, a set of servlets
managing an online store could share the store's product
inventory count. Session tracking is a special case of
servlet collaboration.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should I override the service() method?

1081


Explain web container.

1017


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

1152


What are the key methods that are involved in processing of http servlets?

1091


What is servlet and its life cycle?

1110


Difference between GET and POST?

1142


Is servlet a server side scripting language?

1115


Why jsp is better than servlet?

1010


What is the servletconfig object?

1027


When to use doget() and when dopost()?

1105


What is the GenericServlet class?

1216


Can we use the constructor, instead of init(), to initialize servlet?

1090


What do you mean by web applications?

1184


Can you send an authentication error from a servlet?

961


What are the jobs performed by servlets?

1062