Maps the principal received during servlet or EJB authentication to the credentials accepted by the EIS.
The following table describes subelements for the security-map element.
Table 1–175 security-map Subelements
Element |
Required |
Description |
---|---|---|
one or more |
Contains the principal of the servlet or EJB client. |
|
one or more |
Contains the group to which the principal belongs. |
|
only one |
Specifies the user name and password required by the EIS. |
The following table describes attributes for the security-map element.
Table 1–176 security-map Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a name for the security mapping. |
Defines parameters and configuration information needed by the Java EE security service. For SSL configuration, see ssl. For connector module security, see security-map.
The following table describes subelements for the security-service element.
Table 1–177 security-service Subelements
Element |
Required |
Description |
---|---|---|
one or more |
Defines a realm for authentication. |
|
one or more |
Specifies a Java Authorization Contract for Containers (JACC) provider for pluggable authorization. |
|
zero or more |
Specifies an optional plug-in module that implements audit capabilities. |
|
zero or more |
Specifies configurations for message security providers. |
|
zero or more |
Specifies identity assertion trust domain configuration information. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the security-service element.
Table 1–178 security-service Attributes
Attribute |
Default |
Description |
---|---|---|
file |
(optional) Specifies the active authentication realm (an auth-realm name attribute) for this server instance. |
|
none |
(optional) Used as the identity of the default security context when necessary and when no principal is provided. This attribute need not be set for normal server operation. |
|
none |
(optional) The password of the default principal. This attribute need not be set for normal server operation. |
|
attribute is deprecated |
(optional) Deprecated. Do not use. |
|
false |
(optional) If true, additional access logging is performed to provide audit information. Audit information consists of:
|
|
default |
(optional) Specifies the name of the jacc-provider element to use for setting up the JACC infrastructure. Do not change the default value unless you are adding a custom JACC provider. |
|
default |
(optional) Specifies a space-separated list of audit provider modules used by the audit subsystem. The default value refers to the internal log-based audit module. |
|
false |
(optional) Applies a default principal for role mapping to any application that does not have an application-specific mapping defined. Every role is mapped to an instance of a java.security.Principal implementation class defined by mapped-principal-class. This class has the same name as the role. |
|
com.sun.enterprise.deployment.Group |
(optional) Customizes the java.security.Principal implementation class used when activate-default-principal-to-role-mapping is set to true. |
The following table describes properties for the security-service element.
Table 1–179 security-service Properties
Defines a server instance, which is a Java EE compliant container. One server instance is specially designated as a domain administration server (DAS). The admin-service subelement of the config element referenced by a server's config-ref attribute determines whether the server is the DAS.
Server instances are not the same thing as virtual servers. Each server instance is a completely separate server that contains one or more virtual servers.
The following table describes subelements for the server element.
Table 1–180 server Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
References an application or module deployed to the server instance. |
|
zero or more |
References a resource deployed to the server instance. |
|
zero or more |
Specifies a system property. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the server element.
Table 1–181 server Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the server instance. |
|
default config element’s name, server-config |
(optional) References the name of the config used by the server instance. |
|
node agent created when the server instance was created |
(optional) References the name of the node-agent used by the server instance. |
|
100 |
(optional) Specifies a server instance's relative weight for load balancing. Each server instance in a cluster has a weight, which represents the relative processing capacity of that instance. Weighted load balancing policies use this weight for load balancing requests within the cluster. It is the responsibility of the administrator to set the relative weights correctly, keeping in mind deployed hardware capacity. |
References a server instance.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
cluster, lb-config, converged-lb-config
The following table describes subelements for the server-ref element.
Table 1–182 server-ref Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines a health checker for the referenced server instance. |
The following table describes attributes for the server-ref element.
Table 1–183 server-ref Attributes
Attribute |
Default |
Description |
---|---|---|
none |
References the name attribute of a server element. |
|
30 |
(optional) Specifies the time it takes this server instance to reach a quiescent state after having been disabled. |
|
false |
(optional) If true, all load-balancers that reference this server instance consider it available to them. |
|
enabled |
true |
(optional) Determines whether the server instance is enabled. |
Contains server instances.
The following table describes subelements for the servers element.
Table 1–184 servers Subelements
Element |
Required |
Description |
---|---|---|
only one (developer profile) zero or more (cluster profile) |
Defines a server instance. |
Specifies session configuration information for the entire web or SIP container. Individual web applications or SIP extension modules can override these settings using the corresponding elements in their sun-web.xml or sun-sip.xml files.
The following table describes subelements for the session-config element.
Table 1–185 session-config Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies session manager configuration information. |
|
zero or one |
Specifies session properties. |
Specifies session manager information.
The session manager interface is unstable. An unstable interface might be experimental or transitional, and hence might change incompatibly, be removed, or be replaced by a more stable interface in the next release.
The following table describes subelements for the session-manager element.
Table 1–186 session-manager Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies session manager properties. |
|
zero or one |
Specifies session persistence (storage) properties. |
Specifies session properties.
The following table describes subelements for the session-properties element.
Table 1–187 session-properties Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes properties for the session-properties element.
Table 1–189 session-properties Properties
Property |
Default |
Description |
---|---|---|
true |
Uses cookies for session tracking if set to true. |
|
true |
Enables URL rewriting. This provides session tracking via URL rewriting when the browser does not accept cookies. You must also use an encodeURL or encodeRedirectURL call in the servlet or JavaServer PagesTM (JSPTM) page. |
|
128 |
Specifies the number of bytes in this web or SIP extension module’s session ID. |
Configures the Session Initiation Protocol (SIP) container.
The following table describes subelements for the sip-container element.
Table 1–190 sip-container Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies session configuration information for the SIP container. |
|
zero or one |
Specifies the configuration of a stack of layers, typically related to protocols such as SIP. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the sip-container element.
Table 1–191 sip-container Attributes
Attribute |
Default |
Description |
---|---|---|
determined by SIP container based on network interfaces |
Specifies the address that is externally visible to clients. The clients see the entire cluster. In some cases, when providing addresses to clients, the servers must use this address to make sure the client can call back the load-balanced cluster instead of the individual server instance that provided the callback. |
|
SIP port of default sip-listener (developer profile) |
Specifies the SIP port that is externally visible to clients for call backs. |
|
SIPS port of default sip-listener (developer profile) |
Specifies the secure SIP (SIPS) port that is externally visible to clients for call backs. |
The following table describes properties for the sip-container element.
Table 1–192 sip-container Properties
Property |
Default |
Description |
---|---|---|
0 |
Specifies the quarantine timeout in seconds for 503 responses. A value of zero disables this timeout. See also the udpStaleConnectionsTimeout property of sip-service. |
|
1 |
Specifies the quarantine timeout in seconds for 408 responses. A value of zero disables this timeout. See also the udpStaleConnectionsTimeout property of sip-service. |
|
true |
Always true. Use the enabled attribute of overload-protection-service instead. |
|
false |
Deprecated. Use the cpu-overload-protection attribute of overload-protection-service instead. |
|
false |
Deprecated. Use the memory-overload-protection attribute of overload-protection-service instead. |
|
2 |
Deprecated. Use the sample-rate attribute of overload-protection-service instead. |
|
5 |
Deprecated. Use the number-of-samples attribute of overload-protection-service instead. |
|
90 |
Deprecated. Use the cpu-sr-threshold attribute of overload-protection-service instead. |
|
70 |
Deprecated. Use the cpu-ir-threshold attribute of overload-protection-service instead. |
|
85 |
Deprecated. Use the mem-ir-threshold attribute of overload-protection-service instead. |
|
70 |
Deprecated. Use the cpu-http-threshold attribute of overload-protection-service instead. |
|
85 |
Deprecated. Use the mem-http-threshold attribute of overload-protection-service instead. |
|
90 |
Deprecated. Use the cpu-mm-threshold attribute of overload-protection-service instead. |
|
99 |
Deprecated. Use the mem-mm-threshold attribute of overload-protection-service instead. |
Enables availability in the SIP container, including replicated session persistence.
If availability is disabled, there is no high availability for session persistence.
If availability is enabled, the hard-coded session persistence configuration is as follows:
persistence-type=replicated persistence-frequency=sip-transaction persistence-scope=session
For additional replicated session persistence properties you can set, see availability-service.
The following table describes subelements for the sip-container-availability element.
Table 1–193 sip-container-availability Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the sip-container-availability element.
Table 1–194 sip-container-availability Attributes
Attribute |
Default |
Description |
---|---|---|
true |
(optional) If set to true, and if availability is enabled for the server instance (see availability-service), high-availability features apply to all SIP extension modules deployed to the server instance that do not have availability disabled. All instances in a cluster should have the same availability value to ensure consistent behavior. |
|
memory (availability disabled) replicated (availability enabled) |
(optional) Specifies the session persistence mechanism for SIP extension modules that have availability enabled. Allowed values are memory (no persistence) and replicated (other servers). |
|
sip-transaction |
(optional) Specifies how often the session state is stored. The default, sip-transaction, is the only allowed value. The session state is stored at the end of each request prior to sending a response back to the client. This provides the best guarantee that the session state is fully updated in case of failure. |
|
session |
(optional) Specifies how much of the session state is stored. The default, session, is the only allowed value. The entire session state is stored every time. |
|
false |
(optional) Deprecated. If true, specifies that a forward and reverse repair should be performed on an instance that has joined or rejoined the cluster. |
The following table describes properties for the sip-container-availability element.
Table 1–195 sip-container-availability Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies the name of the class that generates session IDs. If this property is not specified, the Communications Server's internal session ID generator is used. It is the developer's responsibility to ensure that generated IDs are universally unique even when running on multiple JVMs on multiple machines in a cluster. Failure to ensure this in the algorithm results in nondeterministic behavior and likely corruption of session data. |
Configures the SIP connection. Not implemented in this release.
none
The following table describes attributes for the sip-link element.
Table 1–196 sip-link Attributes
Attribute |
Default |
Description |
---|---|---|
120 |
(optional) Specifies the number of seconds of inactivity allowed before the connection is closed. |
|
50 |
(optional) Specifies the maximum number of simultaneous write requests or connect requests, or both, that can be waiting to write on a link. |
|
10 |
(optional) Specifies the timeout in milliseconds for a single write operation. Allowed values are between 1 and 50. |
|
25 |
(optional) Specifies the number of retries allowed for a single write operation. Allowed values are between 1 and 25. |
The following table describes properties for the sip-link element.
Table 1–197 sip-link Properties
Property |
Default |
Description |
---|---|---|
5000 |
Specifies the maximum time a thread can wait to get an exclusive lock for a sip link. |
Defines a SIP service listen socket. The connection-pool subelement of the parent sip-service element also configures some listen socket settings.
The following table describes subelements for the sip-listener element.
Table 1–198 sip-listener Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines Secure Socket Layer (SSL) parameters. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the sip-listener element.
Table 1–199 sip-listener Attributes
The following table describes properties for the sip-listener element.
Table 1–200 sip-listener Properties
Property |
Default |
Description |
---|---|---|
0 |
Specifies the number of seconds after a sip-listener is disabled for the listener to complete in-flight transactions. During this timeout period no new requests are accepted. |
|
false |
If true, specifies that the server socket (5060) has to be closed during the DisableTimeout period. |
Configures SIP protocol settings.
The following table describes subelements for the sip-protocol element.
Table 1–201 sip-protocol Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures the SIP connection. Not implemented in this release. |
|
zero or one |
Configures SIP timers. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the sip-protocol element.
Table 1–202 sip-protocol Attributes
Attribute |
Default |
Description |
---|---|---|
false |
(optional) If true, responds with a 400 error code to a bad request or drop. If false, sends no error response. |
|
false |
(optional) If true, transport=tcp is inserted in the URI of the contact and record-route headers. |
The following table describes properties for the sip-protocol element.
Table 1–203 sip-protocol Properties
Property |
Default |
Description |
---|---|---|
false |
If false, the request is sent to an alternative server when a 503 Service Unavailable error response is received, according to the RFC standard. If true, no alternative server is considered, so when a 503 Service Unavailable error response is received, it is returned to the sender of the request. |
Defines the SIP service.
The following table describes subelements for the sip-service element.
Table 1–204 sip-service Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines access log settings. |
|
one or more |
Defines a SIP listen socket. |
|
zero or one |
Configures request processing threads. |
|
zero or one |
Configures keep-alive threads. |
|
zero or one |
Defines a pool of client HTTP connections. |
|
zero or one |
Configures SIP protocol settings. |
|
zero or more |
Specifies a property or a variable. |
The following table describes properties for the sip-service element.
Table 1–205 sip-service Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies a Java class file that writes SIP Message Inspection messages from the servlet reporter to the server log. This class must implement the org.jvnet.glassfish.comms.admin.reporter.smi.SmiLogMessageAdapter interface. The format of this property's value is as follows: local-classpath;fully-qualified-class-name The local classpath and semicolon delimiter are optional. The local classpath can be an additional classpath outside the container classpath or a local file system path to the class that doesn't include package names. |
|
none |
Specifies a Java class file that writes SIP Message Inspection messages from the network manager reporter to the server log. This class must implement the org.jvnet.glassfish.comms.admin.reporter.smi.SmiLogMessageAdapter interface. The format of this property's value is as follows: local-classpath;fully-qualified-class-name The local classpath and semicolon delimiter are optional. The local classpath can be an additional classpath outside the container classpath or a local file system path to the class that doesn't include package names. |
|
0 |
Specifies the interval in seconds after which UDP connections are removed. A value of zero disables UDP connection removal. See also the defaultQuarantineTime and timeoutBasedQuarantineTime properties of sip-container. |
|
10 |
Specifies the interval in seconds that the network layer waits to complete a handshake with an SSL client. |
Configures T1, T2, and T4 SIP timers. Detailed descriptions for the timers are in RFC 3261, Chapter 17. A summary table of SIP timers is located at http://tools.ietf.org/html/rfc3261#page-265.
none
The following table describes attributes for the sip-timers element.
Table 1–206 sip-timers Attributes
Attribute |
Default |
Description |
---|---|---|
500 |
(optional) Specifies the duration of the SIP timer T1 (round trip time estimate) in milliseconds. For unreliable transports, such as UDP, the client transaction retransmits requests at an interval that starts at T1 seconds and doubles after every retransmission. T1 is an estimate of the round-trip time (RTT). Nearly all of the SIP transaction timers scale with T1, and changing T1 adjusts their values. |
|
4000 |
(optional) Specifies the duration of the SIP timer T2 (maximum retransmit interval for non-INVITE requests and INVITE responses) in milliseconds. For unreliable transports, requests are retransmitted at an interval which starts at T1 and doubles until it reaches T2. If a provisional response is received, retransmissions continue for unreliable transports, but at an interval of T2. T2 represents the amount of time a non-INVITE server transaction takes to respond to a request if it does not respond immediately. |
|
5000 |
(optional) Specifies the duration of the SIP timer T4 in milliseconds. T4 represents the amount of time the network takes to clear messages between client and server transactions. |
Defines SSL (Secure Socket Layer) parameters.
An ssl element is required inside an http-listener or iiop-listener element that has its security-enabled attribute set to on or a sip-listener element with its transport attribute set to tls.
The grandparent http-service element has properties that configure global SSL settings.
http-listener, sip-listener, iiop-listener, jmx-connector, ssl-client-config
none
The following table describes attributes for the ssl element.
Table 1–207 ssl Attributes
Attribute |
Default |
Description |
---|---|---|
s1as |
The nickname of the server certificate in the certificate database or the PKCS#11 token. In the certificate, the name format is tokenname:nickname. Including the tokenname: part of the name in this attribute is optional. |
|
false |
(optional) Determines whether SSL2 is enabled. If both SSL2 and SSL3 are enabled for a virtual-server, the server tries SSL3 encryption first. If that fails, the server tries SSL2 encryption. |
|
none |
(optional) A comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4 . Allowed values are rc4, rc4export, rc2, rc2export, idea, des , desede3. |
|
true |
(optional) Determines whether SSL3 is enabled. The default is true . If both SSL2 and SSL3 are enabled for a virtual-server, the server tries SSL3 encryption first. If that fails, the server tries SSL2 encryption. |
|
none |
(optional) A comma-separated list of the SSL3 ciphers used, with the prefix + to enable or - to disable, for example +SSL_RSA_WITH_RC4_128_MD5 . Allowed values are SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_WITH_NULL_MD5, SSL_RSA_WITH_RC4_128_SHA, and SSL_RSA_WITH_NULL_SHA. Values available in previous releases are supported for backward compatibility. |
|
true |
(optional) Determines whether TLS is enabled. |
|
true |
(optional) Determines whether TLS rollback is enabled. TLS rollback should be enabled for Microsoft Internet Explorer 5.0 and 5.5. For more information, see theSun GlassFish Communications Server 2.0 Administration Guide. |
|
false |
(optional) Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control. |
Defines SSL parameters for the ORB when it makes outbound SSL connections and behaves as a client.
The following table describes subelements for the ssl-client-config element.
Table 1–208 ssl-client-config Subelements
Element |
Required |
Description |
---|---|---|
only one |
Defines SSL parameters. |
Specifies the configuration of a stack of layers, typically related to protocols such as SIP.
The following table describes subelements for the stack-config element.
Table 1–209 stack-config Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a layer of a stack. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the stack-config element.
Table 1–210 stack-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a comma-separated list of stack-layer id values indicating the order of the stack layers. |
Specifies a layer of a stack.
The following table describes subelements for the stack-layer element.
Table 1–211 stack-layer Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. A property is a JavaBean property injected in the layer class, if a corresponding JavaBean setter exists in the layer class. |
The following table describes attributes for the stack-layer element.
Table 1–212 stack-layer Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a unique identifier for the stack-layer element. |
|
none |
Specifies the fully qualified name of the layer class. |
Specifies session persistence (storage) properties.
The following table describes subelements for the store-properties element.
Table 1–213 store-properties Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
Attribute |
Default |
Description |
---|---|---|
domain-dir/generated/jsp/j2ee-apps/appname/appname_war |
(optional) Specifies the absolute or relative pathname of the directory into which individual session files are written. A relative path is relative to the temporary work directory for this web application. Applicable only if the persistence-type attribute of the web-container-availability element is file. |
|
60 |
(optional) Not implemented. Use the reap-interval-in-seconds attribute of the manager-properties element instead. |
Specifies a system property. A system property defines a common value for a setting at one of these levels, from highest to lowest: domain, cluster, server, or config. A value set at a higher level can be overridden at a lower level. Some system properties are predefined; see system-property. You can also create system properties using this element.
The following example shows the use of a predefined system property:
<log-service file="${com.sun.aas.instanceRoot}/logs/server.log"> <module-log-levels admin=INFO .../> </log-service>
The following example shows the creation and use of a system property:
<config name="config1"> ... <http-service> ... <http-listener id="ls1" host="0.0.0.0" port="${ls1-port}"/> ... </http-service> ... <system-property name="ls1-port" value="8080"/> </config>
cluster, config, domain, server
The following table describes subelements for the system-property element.
Table 1–215 system-property Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
The following table describes attributes for the system-property element.
Table 1–216 system-property Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the system property. |
|
none |
Specifies the value of the system property. |
The following table lists predefined system properties.
Table 1–217 Predefined System Properties
Property |
Default |
Description |
---|---|---|
com.sun.aas.installRoot |
depends on operating system |
Specifies the directory where the Communications Server is installed. |
com.sun.aas.instanceRoot |
depends on operating system |
Specifies the top level directory for a server instance. |
com.sun.aas.hostName |
none |
Specifies the name of the host (machine). |
com.sun.aas.javaRoot |
depends on operating system |
Specifies the installation directory for the Java runtime. |
com.sun.aas.imqLib |
depends on operating system |
Specifies the library directory for the Sun GlassFish Message Queue software. |
com.sun.aas.configName |
server-config |
Specifies the name of the config used by a server instance. |
com.sun.aas.instanceName |
server1 |
Specifies the name of the server instance. This property is not used in the default configuration, but can be used to customize configuration. |
com.sun.aas.clusterName |
cluster1 |
Specifies the name of the cluster. This property is only set on clustered server instances. This property is not used in the default configuration, but can be used to customize configuration. |
com.sun.aas.domainName |
domain1 |
Specifies the name of the domain. This property is not used in the default configuration, but can be used to customize configuration. |