Servlet Life Cycle

In this section, we look at the life cycle of the servlet from initialization to destruction and the functions that control it. The core abstract interface of the Servlet API, Servlet, defines the life cycle of a servlet using the init(), service(), and destroy() methods. All servlets are direct or indirect implementations of the Servlet interface, either through the protocol-independent GenericServlet interface or the HTTP protocol-based HttpServlet.

Configuration, Loading, and Instantiation

As a servlet container implementing the Sun Servlet specification, WebLogic Server is responsible for loading and instantiating the configured servlets at the user-configured time. The server provides the capability of loading the servlets ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.