Oracle Server E10293-02 사용자 설명서
Configuring SIP Applications in sip.xml
SIP Servlets 2-13
Configuring SIP Applications in sip.xml
SIP servlets must be declared in the application’s deployment descriptor, the sip.xml
file. The sip.xml file enables you to configure the init parameters and the rules that
match initial requests with SIP servlets.
file. The sip.xml file enables you to configure the init parameters and the rules that
match initial requests with SIP servlets.
The deployment descriptor is divided into the following sections:
■
Global init parameters (ServletContext init parameters)
<context-param>
■
Session configurations
<session-config>
■
Servlet definitions
<servlet>
■
Servlet mappings, contains the invocation rules
<servlet-mapping>
■
Listeners
<listener>
–
Application life cycle listener classes
–
Error handler
■
Security
Setting and Accessing Global Init Parameters
The <context-param> and the <env-entry> elements provide the means to set
and access the application’s global parameters, such as the database used with an
application or other resources that are common to the entire application. These
elements differ in how the global parameters are accessed.
and access the application’s global parameters, such as the database used with an
application or other resources that are common to the entire application. These
elements differ in how the global parameters are accessed.
illustrates setting the database for an
application within the <context-param> element.
Example 2–6 Setting a Database Name within the <context-param>
<context-param>
<param-name>Database</param-name>
<param-value>10.0.0.100</param-value>
<description>The database to be used with this application.</description>
</context-param>
Configuring Application Sessions
session configuration can configure a session timeout value, which is done within the
<session-timeout>
<session-timeout>
clause as shown in the following example. The timeout is set in
minutes; if it set to 0 or below, an application session will never timeout and must be
invalidated explicitly. If no value is set within <session-timeout>, the default
timeout session set for the SIP Servlet Container is used instead (15 minutes).
invalidated explicitly. If no value is set within <session-timeout>, the default
timeout session set for the SIP Servlet Container is used instead (15 minutes).
<session-config>
<session-timeout>10</session-timeout>
</session-config>