|
This chapter contains the following topics:
This one-to-one relationship means that you can configure the J2EE server differently for each application or instance. For example, you can turn on logging for one application and turn it off for another.
To change the configuration of an SESM application, you might change attributes in:
The installed configuration is specific to a Jetty container. If you choose to deploy a container other than Jetty, you must make changes to the container MBeans, such as changing class or object names, or adding more MBeans.
Before deploying SESM applications in containers other than Jetty, determine if your solution requires the port-bundle host key feature on the Service Selection Gateway (SSG). For solutions that use SSG, we recommend enabling the port-bundle host key feature.
Note The Jetty server is currently the only J2EE-compliant server that can support the port-bundle host key feature. |
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 in the Jetty MBean, as described in the "SESMSocketListener MBean" section.
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. Set this value to FALSE, since SESM applications are not WAR files. The first three arguments define the location of the web server application. host/context/application
The SESM application startup scripts derive the values for application.home and jetty.home from an expected (installed) directory structure. To change the value of application.home or jetty.home, edit the start script. | |
<Call addHandler> | This call adds the PortBundleHandler to the container. This handler is required for SESM solutions that use the port bundle host key feature on the SSG. |
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 startup script, the default value in the MBean configuration file is ignored during application startup. To change the value of 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: Mon Aug 26 08:22:10 PDT 2002
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.