Oracle Server E10293-02 Benutzerhandbuch

Seite von 108
The SIP Container
2-2  Oracle Communication and Mobility Server Developer’s Guide
The SIP Container
This section describes the SIP Container (
) by discussing the following 
components:
Figure 2–1  The SIP Container Object Model
Servlet Context
The Servlet Context is a servlet view of the SIP application to which it belongs. Using 
the Servlet Context, the servlet can access such global application services as listeners 
and context init parameters.
The application global init parameters are set in the deployment descriptor, the 
sip.xml
 file, and are marked with the <context-param> marker. Examples of 
global application parameters are common resource addresses, like addresses to a 
database and backend applications.
The Servlet Context also holds all references to any implemented and configured 
listeners. Session and proxy timeouts are held by the Servlet Context. These are 
configured in the sip.xml file and the session timeout is found within the 
<session-config>
 and marked in the <session-timeout> section. The proxy 
timeout is found within the <proxy-config> and marked in the 
<sequential-search-timeout>
 section.
The Servlet Context is retrieved by calling the getServletContext method from the 
servlet. For example:
ServletContext servletContext = getServletContext();