|
The SESM installation process performs all required configurations for running the SESM applications in Jetty containers. Use this chapter if you want to change or fine-tune the J2EE container configuration after installation. This chapter contains the following topics:
SESM portals and CDAT are J2EE web applications. They must run in a J2EE web server. The web server is the container for the applications that run in it. The SESM installation program installs and configures Jetty servers as the containers for the SESM portal applications and CDAT. Deployers can create a web archive (WAR) file from the installation and deploy SESM applications in other containers.
The port-bundle host key feature provides the following advantages to SESM portal applications:
When port-bundle host key is enabled on the SSG, the SSG preserves the port number of the incoming HTTP request. This remote port number becomes the key that uniquely identifies each subscriber. The key is included in the request that is forwarded to the SESM web application.
The PortBundleHandler is added to the Jetty container by the following file under the SESM application directory (nwsp, for example):
nwsp
webapp
WEB-INF
web-jetty.xml
Jetty version 4.1.0RC6 is bundled with SESM Release 3.1(7). This Jetty version adds the contents of web-jetty.xml. In Jetty versions earlier than Version 4, the port bundle handler must be added in the nwsp.jetty.xml file.
cd installDir/nwsp/webapp
jar cf0 ../nwsp.war *
For instructions about deploying an application using a WAR file, see the documentation for the container you are using.
A Jetty container uses the following MBeans:
To change attributes in these MBeans, you can use either of the following methods:
jetty
config
nwsp.jetty.xml
wap.jetty.xml
pda.jetty.xml
cdat.jetty.xml
Note Containers do not have their own management consoles. |
The Log MBean enables the Jetty server debugging and logging mechanisms and configures the information that appears in the jetty log file. Table 4-1 describes the attributes in the Log MBean.
Attribute Name | Explanation |
---|---|
Installed default: empty | |
Controls the format of the date stamp in the log messages. Installed default: yyyyMMdd:HHmmss.SSS | |
Controls whether or not the log messages include frame details. Installed default: false | |
Installed default: false | |
Controls whether or not the log messages include an indication of stack depth. Installed default: false | |
Controls whether or not the log messages include trace information. Installed default: false | |
Installed default: true | |
Installed default: true | |
Indicates if messages overwrite existing contents (false) or are appended to the existing file (true). Installed default: true | |
Indicates the number of days to keep an old log file before deleting it. Installed default: 31 | |
Specifies the log filename and path, as follows:
Where:
|
The Debug MBean enables or disables the Jetty server debugging mechanism. Table 4-2 describes the attributes in the DebugMBean.
Attribute Name | Explanation |
---|---|
Controls whether or not debugging messages are produced. Installed default: false | |
By specifying one or more patterns, you turn on a filtering mechanism that excludes any message that does not match the pattern. The patterns are file, class, or method names. Pattern matching is based on substring matches. For example, if you specify the pattern RADIUS, the software focuses on RADIUS messages. To specify multiple patterns, separate the patterns using a comma. Installed default: empty | |
Specifies the level of detail reported in debugging messages. The range of allowed values is 0 (no details) to 255 (all details). Installed default: 0 | |
Controls whether or not stack information is included in debug messages. Installed default: false | |
Controls whether or not warning messages are included in debug messages. Installed default: false |
The Server MBean configures a request log, which records all incoming HTTP requests. Table 4-3 describes the attributes in the Server MBean.
Attribute Name | Explanation |
---|---|
RequestLog | Creates a new class with one argument, which specifies the name and location of the request log. The installed value is:
Where:
|
Indicates the number of days to keep a log file before deleting it. Installed default: 90 | |
Indicates whether or not to append messages to an existing file or to create a new file for each application instance. Installed default: true | |
This call adds the SESM application to run on the web server. It uses five positional arguments: 1. The first positional argument specifies the virtual host name for the web server application. 2. The second positional argument specifies the context path for locating the web server application. For example, / or /pathname/*. 3. The third positional argument identifies the location of the application. The value is:
4. The fourth positional argument identifies the location of the webdefault.xml file for this application. The value is:
5. The fifth positional argument specifies whether or not web archive (WAR) files are used. Valid values are TRUE and FALSE. The first three arguments define the location of the web server application. host/context/application
The SESM start script derives the values for application.home and jetty.home from an expected (installed) directory structure. To change these values, edit the start script. |
The SESMSocketListener MBean configures the port that the Jetty server listens on for HTTP requests from subscribers. Table 4-4 describes the attributes in the SESMSocketListener MBean.
Attribute Name | Explanation |
---|---|
Sets the port number that the web server listens on. The installed value is a Java system property named: application.portno
Note The startup script sets this system property. Unless you alter the start script, the default value in the MBean configuration file is ignored during application startup. To change the value of Default: 8080 Installed value: The SESM installation program sets the | |
Sets the minimum number of threads that this listener maintains during periods of low load. This listener always has system resources allocated for this number of threads. Installed default: 5 | |
Sets the maximum number of threads that this listener can allocate resources for, even during peak loads. This listener can have up to this number of threads. Installed default: 255 | |
Specifies the length of time a thread can be idle (not used) before the listener deallocates it. The unit is milliseconds. Installed default: 60000 | |
Specifies the time that a read on a request can block. This is the length of time that the web server waits for a request from a client after the client opens a socket connection. When maxReadTimeMs is exceeded, the web server closes the socket connection. Installed default: 60000 |
The SESMSSLListener MBean configures the port that the Jetty server listens on for requests from subscribers on the Secure Sockets Layer (SSL). Table 4-5 describes the attributes in the SESMSSLListener MBean.
Attribute Name | Explanation | ||
---|---|---|---|
Sets the port that the secure socket layer (SSL) listener uses. The installed value is a Java system property named: application.ssl.portno
Note The startup script sets this system property. Unless you alter the startup script, the default value in the MBean configuration file is ignored during application startup. The generic startup script derives a value for application.ssl.portno = application.portno - 80 + 443
To change the value of | |||
Sets the minimum number of threads that this listener maintains during periods of low load. The listener always has system resources allocated for this number of threads. Installed default: 5 | |||
Sets the maximum number of threads that this listener can allocate resources for, even during peak loads. The listener can allocate up to this number of threads. Installed default: 255 | |||
Specifies the length of time a thread can be idle (not used) before the listener deallocates it. The unit is milliseconds. Installed default: 50000 | |||
Sets the path name of the SSL keystore file. The keystore file is a binary file created by keytool. Sample keystore files are included in the installation for each portal application. For example:
Where:
| |||
Must match the value in the keystore file referenced above. | |||
Must match the value in the keystore file referenced above. |
Posted: Fri Oct 18 10:03:22 PDT 2002
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.