Skip navigation.  Programming WebLogic HTTP Servlets
Programming Tasks  The following sections describe how to write
HTTP servlets in a WebLogic Server environment:   Initializing a
Servlet  Normally, WebLogic Server initializes a servlet when
the first request is made for the servlet. Subsequently, if the
servlet is modified, the destroy() method is called on the
existing version of the servlet. Then, after a request is made
for the modified servlet, the init() method of the modified
servlet is executed. For more information, see Servlet
Development Tips.  When a servlet is initialized, WebLogic
Server executes the init() method of the servlet. Once the
servlet is initialized, it is not initialized again until you
restart WebLogic Server or the servlet code when the servlet is
modified. If you choose to override the init() method, your
servlet can perform certain tasks, such as establishing database
connections, when the servlet is initialized. (See Overriding
the init() Method)  Initializing a Servlet whe