This chapter describes the domain.xml configuration file in these sections:
Subelements must be defined in the order in which they are listed under each Subelements heading in this chapter unless otherwise noted.
The domain.xml file contains most of the Sun JavaTM System Communications Server configuration. The encoding is UTF-8 to maintain compatibility with regular UNIX text editors. The domain.xml file is located in the domain configuration directory, which is typically domain-dir/config. This file is further described in the following sections:
Settings in the Communications Server deployment descriptors override corresponding settings in the domain.xml file unless otherwise stated. For more information about the Communications Server deployment descriptors, see the Sun GlassFish Communications Server 2.0 Application Deployment Guide.
The sun-domain_1_5.dtd file defines the structure of the domain.xml file, including the elements it can contain and the subelements and attributes these elements can have. The sun-domain_1_5.dtd file is located in the as-install/lib/dtds directory.
Do not edit the sun-domain_1_5.dtd file; its contents change only with new versions of the Communications Server.
The sun-domain_1_5.dtd 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.
Elements or attributes that appear in the sun-domain_1_5.dtd file but are not described in this chapter are not implemented and should not be used.
For general information about DTD files and XML, see the XML specification.
In this manual, the term default is used in its broader sense, and not in the specific way it is used in the XML 1.0 standard. A default value is an initial value or the value used if no value is present in the XML file. A default value can be any of the following:
A value supplied by the XML parser when no value is found in the domain.xml file. The relevant element or attribute is optional.
A value supplied by the Communications Server when no value is found in the domain.xml file and the XML parser doesn’t provide a value. The relevant element or attribute is optional.
An initial value supplied when the domain.xml file is created. The relevant element or attribute might or might not be optional.
When a required attribute or property has a default, this default is supplied when the domain.xml file is created.
Variables and variable references are needed for two reasons:
Parts of the Communications Server share much configuration information but differ in specific details. For example, server instances in a cluster typically share the same configuration except for their port numbers.
Parts of the configuration come from the system environment but must still be captured in the configuration.
Variable references appear in the domain.xml file as strings that begin with the characters ${ and end with the character }. For example, the string ${com.sun.enterprise.myVar} is a reference to the variable com.sun.enterprise.myVar .
Variables are defined both outside of and within domain.xml. Predefined variables that exist outside of domain.xml are defined as Java System Properties. Within domain.xml, a variable is defined using the system-property element or the jvm-options element.
The system-property element’s name attribute is the name of a variable; its value attribute is the definition of the variable. For example, the following system-property element defines a port-number variable with the value 6500:
<system-property name="port-number" value="6500"/>
Multiple system-property subelements are permitted within server, cluster, config, and domain elements.
A variable defined in the jvm-options element is a Java System Property with the -D flag. For example, the following jvm-options element defines a port-number variable with the value 5500:
<jvm-option>-Dport-number=5500</jvm-option>
Multiple definitions for the same variable are permitted. The Communications Server determines the actual value of a variable by searching for its first definition in a strict hierarchy of the elements within domain.xml. The hierarchy is as follows:
server -> cluster -> config -> jvm-options -> domain -> System
Implicit in this hierarchy is the notion of reference and containment. A variable referenced in a server element is only looked up:
In the cluster element referenced by that specific server
In the config element that references that specific server
In the jvm-options subelements of the config element referenced by that server
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.
One element references another when an attribute of the referencing element has the same value as an attribute of the referenced element. For example, the application-ref element references an application or module that is deployed to its parent server element. The application-ref element’s ref attribute has the same value as the name attribute of a lifecycle-module, j2ee-application, ejb-module, web-module, connector-module, or appclient-module element.
The referencing application-ref element might look like this:
<application-ref ref="MyServlet"/>
The referenced web-module element might look like this:
<web-module name="MyServlet" location="myservletdir"/>
The element hierarchy for the domain.xml file is as follows. To make the hierarchy more readable, elements having property as their last or only subelement are marked with a P, and the property subelements are not shown. Parent/child relationships between elements are shown, but not cardinality. For those details, see the element descriptions.
domain P . applications . . lifecycle-module P . . . description . . j2ee-application P . . . description . . . web-service-endpoint . . . . registry-location . . . . transformation-rule . . web-module P . . . description . . . web-service-endpoint . . . . registry-location . . . . transformation-rule . . ejb-module P . . . description . . . web-service-endpoint . . . . registry-location . . . . transformation-rule . . connector-module P . . . description . . appclient-module P . . . description . . mbean P . . . description . . extension-module P . . . description . resources . . custom-resource P . . . description . . external-jndi-resource P . . . description . . jdbc-resource P . . . description . . mail-resource P . . . description . . persistence-manager-factory-resource P . . . description . . admin-object-resource P . . . description . . connector-resource P . . . description . . resource-adapter-config P . . jdbc-connection-pool P . . . description . . connector-connection-pool P . . . description . . . security-map . . . . principal . . . . user-group . . . . backend-principal . configs . . config P . . . sip-service P . . . . access-log . . . . sip-listener P . . . . . ssl . . . . request-processing . . . . keep-alive . . . . connection-pool . . . . sip-protocol P . . . . . sip-link . . . . . sip-timers . . . http-service P . . . . access-log . . . . request-processing . . . . keep-alive . . . . connection-pool . . . . http-protocol . . . . http-listener P . . . . . ssl . . . . virtual-server P . . . . . http-access-log . . . overload-protection-service . . . iiop-service . . . . orb P . . . . ssl-client-config . . . . . ssl . . . . iiop-listener P . . . . . ssl . . . admin-service P . . . . jmx-connector P . . . . . ssl . . . . das-config P . . . connector-service . . . web-container P . . . . session-config . . . . . session-manager . . . . . . manager-properties P . . . . . . store-properties P . . . . . session-properties P . . . ejb-container P . . . . ejb-timer-service P . . . mdb-container P . . . sip-container P . . . . session-config . . . . . session-manager . . . . . . manager-properties P . . . . . . store-properties P . . . . . session-properties P . . . . stack-config P . . . . . stack-layer P . . . jms-service P . . . . jms-host P . . . log-service P . . . . module-log-levels P . . . security-service P . . . . auth-realm P . . . . jacc-provider P . . . . audit-module P . . . . message-security-config . . . . . provider-config P . . . . . . request-policy . . . . . . response-policy . . . . identity-assertion-trust . . . . . trusted-entity . . . . . . ip-address . . . . . . host-name . . . . . . principal . . . . . trust-handler P . . . transaction-service P . . . monitoring-service P . . . . module-monitoring-levels P . . . diagnostic-service P . . . java-config P . . . . profiler P . . . . . jvm-options . . . . jvm-options . . . availability-service P . . . . web-container-availability P . . . . ejb-container-availability P . . . . sip-container-availability P . . . . jms-availability P . . . . converged-load-balancer . . . . . proxy P . . . thread-pools . . . . thread-pool . . . alert-service P . . . . alert-subscription . . . . . listener-config P . . . . . filter-config P . . . group-management-service P . . . management-rules . . . . management-rule P . . . . . description . . . . . event P . . . . . . description . . . system-property . . . . description . servers . . server P . . . application-ref . . . resource-ref . . . system-property . . . . description . clusters . . cluster P . . . server-ref . . . . health-checker . . . resource-ref . . . application-ref . . . system-property . . . . description . node-agents . . node-agent P . . . jmx-connector P . . . . ssl . . . auth-realm P . . . log-service P . . . . module-log-levels P . lb-configs . . lb-config P . . . cluster-ref . . . . health-checker . . . server-ref . . . . health-checker . load-balancers . . load-balancer P . converged-lb-configs . . converged-lb-config P . . . converged-lb-policy P . . . converged-lb-cluster-ref . . . server-ref . . . . health-checker . system-property . . description
A B C D E F GH I J K L M N O P R S T U V W
Defines access log settings for sip-service and for each http-access-log subelement of each virtual-server.
none
The following table describes attributes for the access-log element.
Table 1–1 access-log Attributes
Attribute |
Default |
Description |
---|---|---|
%client.name% %auth-user-name% %datetime% %request% %status% %response.length% |
(optional) Specifies the format of the access log. For a complete list of token values you can use in the format, see the online help for the Access Log tab of the HTTP Service or Session Initiation Protocol (SIP) Service page in the Admin Console. |
|
time |
(optional) Specifies the condition that triggers log rotation. The only legal value is time, which rotates log files at the rotation-interval-in-minutes interval. |
|
15 (developer profile) 1440 (cluster profile) |
(optional) Specifies the time interval between log rotations if rotation-policy is set to time. |
|
yyyy-MM-dd (developer profile) yyyyMMdd-HH'h'mm'm'ss's' (cluster profile) |
(optional) Specifies the format of the timestamp appended to the access log name when log rotation occurs. For supported formats, see http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html. The following value is supported for backward compatibility. It results in the same format as the default. %YYYY;%MM;%DD;-%hh;h%mm;m%ss;s |
|
true |
(optional) If true, enables log rotation. |
Specifies the action of a management rule. The action is implemented as an MBean.
none
The following table describes attributes for the action element.
Table 1–2 action Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the mbean that performs the action of a management rule. This MBean must implement javax.management.NotificationListener. |
Defines an administered object for an inbound resource adapter.
The following table describes subelements for the admin-object-resource element.
Table 1–3 admin-object-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the admin-object-resource element.
Table 1–4 admin-object-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
none |
Specifies the fully qualified type of the resource. |
|
none |
Specifies the name of the inbound resource adapter, as specified in the name attribute of a connector-module element. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |
Properties of the admin-object-resource element are the names of setter methods of the adminobject-class specified in the adminobject element of the ra.xml file. Some of the property names can be specified in the adminobject element itself. For example, in jmsra, the resource adapter used to communicate with the Sun Java System Message Queue software, jmsra, Name and Description are valid properties.
For a complete list of the available properties (called administered object attributes in the Message Queue software), see the Sun GlassFish Message Queue 4.4 Administration Guide.
Determines whether the server instance is a regular instance, a domain administration server, or a combination.
The following table describes subelements for the admin-service element.
Table 1–5 admin-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Configures a JSR 160/255 compliant remote JMX connector. |
|
only one (developer profile) zero or one (cluster profile) |
Defines a domain administration server configuration. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the admin-service element.
Table 1–6 admin-service Attributes
Attribute |
Default |
Description |
---|---|---|
das-and-server (developer profile) server (cluster profile) |
Specifies whether the server instance is a regular instance (server), a domain administration server (das), or a combination (das-and-server). modifying this value is not recommended. |
|
none |
Specifies the name of the internal jmx-connector. |
Configures the alert service, which allows you to register for and receive system status alerts.
The following table describes subelements for the alert-service element.
Table 1–7 alert-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Configures a subscription to system status alerts. |
|
zero or more |
Specifies a property or a variable. |
Configures a subscription to system status alerts.
The following table describes subelements for the alert-subscription element.
Table 1–8 alert-subscription Subelements
Element |
Required |
Description |
---|---|---|
only one |
Configures the listener class that listens for alerts from notification emitters. |
|
zero or one |
Configures the filter class that filters alerts from notification emitters. |
The following table describes attributes for the alert-subscription element.
Table 1–9 alert-subscription Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of this alert subscription. |
Specifies a deployed application client container (ACC) module.
The following table describes subelements for the appclient-module element.
Table 1–10 appclient-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the appclient-module element.
Table 1–11 appclient-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the ACC module. |
|
none |
The location of the ACC module in the Communications Server file system. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
|
true |
(optional) Specifies whether Java Web Start access is permitted for this application client. |
References an application or module deployed to the server instance or cluster.
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.
none
The following table describes attributes for the application-ref element.
Table 1–12 application-ref Attributes
Attribute |
Default |
Description |
---|---|---|
enabled |
true |
(optional) Determines whether the application or module is enabled. |
all virtual servers |
(optional) In a comma-separated list, references id attributes of the virtual-server elements to which the web-module or the web modules within this j2ee-application are deployed. |
|
false |
(optional) If true, all load-balancers that reference this application consider it available to them. |
|
30 |
(optional) Specifies the time it takes this application to reach a quiescent state after having been disabled. |
|
none |
References the name attribute of a lifecycle-module, j2ee-application, ejb-module, web-module, connector-module, appclient-module, or extension-module element. |
Contains deployed Java EE applications, Java EE modules, and Lifecycle modules.
The following table describes subelements for the applications element.
Table 1–13 applications Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a deployed lifecycle module. |
|
zero or more |
Specifies a deployed Java EE application. |
|
zero or more |
Specifies a deployed EJB module. |
|
zero or more |
Specifies a deployed web module. |
|
zero or more |
Specifies a deployed connector module. |
|
zero or more |
Specifies a deployed application client container (ACC) module. |
|
zero or more |
Specifies an MBean. |
|
zero or more |
Specifies an extension module. |
Subelements of an applications element can occur in any order.
Specifies an optional plug-in module that implements audit capabilities.
The following table describes subelements for the audit-module element.
Table 1–14 audit-module Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the audit-module element.
Table 1–15 audit-module Attributes
Attribute |
Default |
Description |
---|---|---|
default |
Specifies the name of this audit module. |
|
com.sun.enterprise.security.Audit |
Specifies the Java class that implements this audit module. |
Defines a realm for authentication.
Authentication realms require provider-specific properties, which vary depending on what a particular implementation needs.
For more information about how to define realms, see the Sun GlassFish Communications Server 2.0 Administration Guide.
Here is an example of the default file realm:
<auth-realm name="file" classname="com.sun.enterprise.security.auth.realm.file.FileRealm"> <property name="file" value="domain-dir/config/keyfile"/> <property name="jaas-context" value="fileRealm"/> </auth-realm>
Which properties an auth-realm element uses depends on the value of the auth-realm element’s name attribute. The file realm uses file and jaas-context properties. Other realms use different properties.
The following table describes subelements for the auth-realm element.
Table 1–16 auth-realm Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the auth-realm element.
Table 1–17 auth-realm Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of this realm. |
|
none |
Specifies the Java class that implements this realm. |
The standard realms provided with Communications Server have required and optional properties. A custom realm might have different properties.
The following table describes properties for the auth-realm element.
Table 1–18 auth-realm Properties
Property |
Realms |
Description |
---|---|---|
file, ldap, jdbc, solaris |
Specifies the JAAS (Java Authentication and Authorization Service) context. |
|
file |
Specifies the file that stores user names, passwords, and group names. The default is domain-dir/config/keyfile. |
|
certificate, file, jdbc, ldap, solaris |
(optional) If this property is set, its value is taken to be a comma-separated list of group names. All clients who present valid certificates are assigned membership to these groups for the purposes of authorization decisions in the web and EJB containers. |
|
ldap |
Specifies the LDAP URL to your server. |
|
ldap |
Specifies the LDAP base DN for the location of user data. This base DN can be at any level above the user data, since a tree scope search is performed. The smaller the search tree, the better the performance. |
|
ldap |
(optional) Specifies the search filter to use to find the user. The default is uid=%s (%s expands to the subject name). |
|
ldap |
(optional) Specifies the base DN for the location of groups data. By default, it is same as the base-dn, but it can be tuned, if necessary. |
|
ldap |
(optional) Specifies the search filter to find group memberships for the user. The default is uniquemember=%d (%d expands to the user element DN). |
|
ldap |
(optional) Specifies the LDAP attribute name that contains group name entries. The default is CN. |
|
ldap |
(optional) Specifies an optional DN used to authenticate to the directory for performing the search-filter lookup. Only required for directories that do not allow anonymous search. |
|
ldap |
(optional) Specifies the LDAP password for the DN given in search-bind-dn . |
|
jdbc |
Specifies the jndi-name of the jdbc-resource for the database. |
|
jdbc |
Specifies the name of the user table in the database. |
|
jdbc |
Specifies the name of the user name column in the database's user table. |
|
jdbc |
Specifies the name of the password column in the database's user table. |
|
jdbc |
Specifies the name of the group table in the database. |
|
jdbc |
Specifies the name of the group name column in the database's group table. |
|
jdbc |
(optional) Allows you to specify the database user name in the realm instead of the jdbc-connection-pool. This prevents other applications from looking up the database, getting a connection, and browsing the user table. By default, the jdbc-connection-pool configuration is used. |
|
jdbc |
(optional) Allows you to specify the database password in the realm instead of the jdbc-connection-pool. This prevents other applications from looking up the database, getting a connection, and browsing the user table. By default, the jdbc-connection-pool configuration is used. |
|
jdbc |
(optional) Specifies the digest algorithm. The default is MD5. You can use any algorithm supported in the JDK, or none. |
|
jdbc |
(optional) Specifies the encoding. Allowed values are Hex and Base64. If digest-algorithm is specified, the default is Hex. If digest-algorithm is not specified, by default no encoding is specified. |
|
jdbc |
(optional) Specifies the charset for the digest algorithm. |
Configures the availability service. Enables high-availability features, such as session state and stateful session bean state persistence.
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.
Availability can be enabled or disabled at the following levels:
The server instance (attribute of availability-service). Default is true (enabled).
The EJB, SIP, or web container (attribute of ejb-container-availability, sip-container-availability, or web-container-availability). Default is true (enabled).
The application (attribute of j2ee-application). Default is false (disabled).
The stand-alone EJB, SIP, or web module (attribute of ejb-module, extension-module, or web-module). Default is false (disabled).
The stateful session bean. Default is false (disabled). See the Sun GlassFish Communications Server 2.0 Developer’s Guide.
For availability to be enabled at a given level, it must be enabled at all higher levels, as well. For example, to enable availability at the application level, you must also enable it at the server instance and container levels.
The following table describes subelements for the availability-service element.
Table 1–19 availability-service Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Enables availability in the web container. |
|
zero or one |
Enables availability in the EJB container. |
|
zero or one |
Enables availability in the SIP container. |
|
zero or one |
Defines and configures a converged load balancer. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the availability-service element.
Table 1–20 availability-service Attributes
Attribute |
Default |
Description |
---|---|---|
true |
(optional) If set to true, high-availability features apply to all applications 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. |
The following table describes properties for the availability-service element. For more information about replicated session persistence, see web-container-availability and ejb-container-availability.
Table 1–21 availability-service Properties
Attribute |
Default |
Description |
||
---|---|---|---|---|
false |
If true, logs measurements of replication times. One of these messages appears in the sending instance's log:
This message appears in the receiving instance's log:
|
|||
1 |
Specifies the frequency of measurement of replication. It must be a positive integer: 1 means every replication, 2 means once every 2 replications, 3 means once every 3 replications, and so on. Applicable only if replication_measurement_enabled is set to true. |
|||
instance-dir/rollingupgrade |
Specifies where the asadmin backup-session-store command backs up active and replica sessions. |
Specifies the user name and password required by the Enterprise Information System (EIS).
none
The following table describes attributes for the backend-principal element.
Table 1–22 backend-principal Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the user name required by the EIS. |
|
none |
(optional) Specifies the password required by the EIS, if any. |
Defines a cluster.
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.
The following table describes subelements for the cluster element.
Table 1–23 cluster Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
References a server instance that belongs to the cluster. |
|
zero or more |
References a resource deployed to the cluster. |
|
zero or more |
References an application or module deployed to the cluster. |
|
zero or more |
Specifies a system property. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the cluster element.
Table 1–24 cluster Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the cluster. |
|
default config element’s name attribute value, server-config |
References the configuration used by the cluster. |
|
none; value automatically generated |
Specifies the communication port the Group Management Service uses to listen for group events. Must be a valid port number. |
|
none; value automatically generated |
Specifies the address the Group Management Service uses to listen for group events. Must be a multicast address. |
|
false (developer profile) true (cluster profile) |
(optional) If true, the Group Management Service is started as a lifecycle module in each server instance in the cluster and in the Domain Administration Server. The Domain Administration Server participates in each cluster that has this attribute set to true. |
The following table describes properties for the cluster element.
Table 1–25 cluster Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies which address the group management service uses on a multi-home machine. If a machine has only one network interface, there is no need to set this property. If this property is not set or is set to an invalid value on a multi-home machine, Communications Server uses all available addresses. The primary address is nondeterministic, because the ordering of addresses is specific to the operating system, not the Java network API used to access the network interfaces. You can create system-property elements to set this value differently for each server instance in the cluster. For example: <domain> ... <clusters> <cluster name="cluster1" ... > ... <property name="gms-bind-interface-address" value="${GMS_CLUSTER1_BIND_IF_ADDR}"/> </cluster> ... </clusters> ... <servers> <server name="server1" ... > ... <system-property name="GMS_CLUSTER1_BIND_IF_ADDR" value="123.456.78.910"/> </server> ... </servers> ... </domain> |
References a cluster.
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.
The following table describes subelements for the cluster-ref element.
Table 1–26 cluster-ref Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines a health checker for the referenced cluster. |
The following table describes attributes for the cluster-ref element.
Table 1–27 cluster-ref Attributes
Attribute |
Default |
Description |
---|---|---|
none |
References the name attribute of a cluster element. |
|
round-robin |
(optional) Specifies the load balancing policy. Allowed values are:
|
|
none |
(optional) Specifies the absolute path to the shared library that implements the user-defined policy. The shared library must exist and be readable on the machine where the load balancer is running. Required only if lb-policy is set to user-defined. |
Contains clusters.
The following table describes subelements for the clusters element.
Table 1–28 clusters Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a cluster. |
Defines a configuration, which is a collection of settings that controls how a server instance functions.
The following table describes subelements for the config element.
Table 1–29 config Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures the SIP service. |
|
only one |
Configures the HTTP service. |
|
only one |
Configures the overload protection service for HTTP and SIP requests. |
|
only one |
Configures the IIOP service. |
|
only one |
Determines whether the server to which the configuration applies is an administration server. |
|
zero or one |
Configures the connector service. |
|
only one |
Configures the web container. |
|
only one |
Configures the Enterprise JavaBeansTM (EJBTM) container. |
|
only one |
Configures the message-driven bean (MDB) container. |
|
zero or one |
Configures the SIP container. |
|
zero or one |
Configures the Java Message Service (JMS) provider. |
|
only one |
Configures the system logging service. |
|
only one |
Configures the Java EE security service. |
|
only one |
Configures the transaction service. |
|
only one |
Configures the monitoring service. |
|
zero or one |
Configures the diagnostic service. |
|
only one |
Configures the Java Virtual Machine (JVMTM). |
|
zero or one |
Configures the availability service. |
|
only one |
Configures thread pools. |
|
zero or one |
Configures the alert service. |
|
zero or one |
Configures the group management service. |
|
zero or one |
Configures self-management rules. |
|
zero or more |
Specifies a system property. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the config element.
Table 1–30 config Attributes
Attribute |
Default |
Description |
---|---|---|
server-config (for default instance) |
Specifies the name of the configuration. |
|
true |
(optional) If true, any changes to the system (for example, applications deployed, resources created) are automatically applied to the affected servers without a restart being required. If false, such changes are only picked up by the affected servers when each server restarts. |
Contains configurations.
The following table describes subelements for the configs element.
Table 1–31 configs Subelements
Element |
Required |
Description |
---|---|---|
only one (developer profile) one or more (cluster profile) |
Defines a configuration. |
Defines a pool of client HTTP or SIP connections used by the http-listener or sip-listener subelements of the parent http-service or sip-service element.
none
The following table describes attributes for the connection-pool element.
Table 1–32 connection-pool Attributes
Attribute |
Default |
Description |
---|---|---|
-1 |
(optional) Specifies the maximum number of messages that can be queued until threads are available to process them for http-listener or sip-listener elements. A value of -1 specifies no limit. |
|
4096 |
(optional) Specifies the maximum number of pending connections on an http-listener or sip-listener. Not implemented if the parent element is sip-service. |
|
4096 (http-service) socket channel receive buffer size (sip-service) |
(optional) Specifies the size of the receive buffer for all http-listener or sip-listener elements. A value of -1 specifies no limit. |
|
8192 |
(optional) Specifies the size of the send buffer for all http-listener or sip-listener elements. |
Defines a connector connection pool.
The following table describes subelements for the connector-connection-pool element.
Table 1–33 connector-connection-pool Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Maps the principal received during servlet or EJB authentication to the credentials accepted by the EIS. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the connector-connection-pool element. Changing the following attributes requires a server restart: resource-adapter-name, connection-definition-name, transaction-support, associate-with-thread, lazy-connection-association, and lazy-connection-enlistment.
Table 1–34 connector-connection-pool Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the connection pool. A connector-resource element’s pool-name attribute refers to this name. |
|
none |
Specifies the name attribute of the deployed connector-module. If no name is specified during deployment, the name of the .rar file is used. If the resource adapter is embedded in an application, then it is app_name#rar_name. |
|
none |
Specifies a unique name, identifying a resource adapter’s connection-definition element in the ra.xml file. This is usually the connectionfactory-interface of the connection-definition element. |
|
8 |
(optional) Specifies the initial and minimum number of connections maintained in the pool. |
|
32 |
(optional) Specifies the maximum number of connections that can be created to satisfy client requests. |
|
60000 |
(optional) Specifies the amount of time, in milliseconds, that the caller is willing to wait for a connection. If 0, the caller is blocked indefinitely until a resource is available or an error occurs. |
|
2 |
(optional) Specifies the number of idle connections to be destroyed if the existing number of connections is above the steady-pool-size (subject to the max-pool-size limit). This is enforced periodically at the idle-timeout-in-seconds interval. An idle connection is one that has not been used for a period of idle-timeout-in-seconds. When the pool size reaches steady-pool-size, connection removal stops. |
|
300 |
(optional) Specifies the maximum time that a connection can remain idle in the pool. After this amount of time, the pool can close this connection. |
|
false |
(optional) If true, closes all connections in the pool if a single validation check fails. |
|
none |
(optional) Specifies the transaction support for this connection pool. Overrides the transaction support defined in the resource adapter in a downward compatible way: supports a transaction level lower than or equal to the resource adapter’s, but not higher. Allowed values in descending order are:
|
|
false |
(optional) Specifies whether connections have to be validated before being given to the application. If a resource’s validation fails, it is destroyed, and a new resource is created and returned. |
|
0 |
Detects potential connection leaks by the application. A connection that is not returned back to the pool by the application within the specified period is assumed to be potentially leaking, and a stack trace of the caller is logged. A zero value disables leak detection. A nonzero value enables leak tracing. |
|
false |
If true, the pool will reclaim a connection after connection-leak-timeout-in-seconds occurs. |
|
0 |
Specifies the number of attempts to create a new connection. |
|
10 |
Specifies the time interval between attempts to create a connection when connection-creation-retry-attempts is greater than 0. |
|
60 |
Specifies the time interval within which a connection is validated at most once. Minimizes the number of validation calls. |
|
false |
If true, a connection is not enlisted in a transaction until it is used. If false, any connection object available to a transaction is enlisted in the transaction. |
|
false |
If true, a physical connection is not associated with a logical connection until it is used. If false, a physical connection is associated with a logical connection even before it is used. |
|
false |
If true, allows a connection to be saved as a ThreadLocal in the calling thread. This connection gets reclaimed only when the calling thread dies or when the calling thread is not in use and the pool has run out of connections. |
|
true |
If true, enables connection matching. You can set to false if connections are homogeneous. |
|
0 |
Specifies the number of times a connections is reused by the pool, after which it is closed. A zero value disables this feature. |
Most properties of the connector-connection-pool element are the names of setter methods of the managedconnectionfactory-class element in the ra.xml file. Properties of the connector-connection-pool element override the ManagedConnectionFactory JavaBean configuration settings.
All but the last four properties in the following table are connector-connection-pool properties of jmsra, the resource adapter used to communicate with the Sun GlassFish Message Queue software. For a complete list of the available properties (called administered object attributes in the Message Queue software), see the Sun GlassFish Message Queue 4.4 Administration Guide.
Changes to connector-connection-pool properties require a server restart.
Table 1–35 connector-connection-pool Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies a list of host/port combinations of the Message Queue software. For JMS resources of the Type javax.jms.TopicConnectionFactory or javax.jms.QueueConnectionFactory. |
|
none |
Specifies the JMS Client Identifier to be associated with a Connection created using the createTopicConnection method of the TopicConnectionFactory class. For JMS resources of the Type javax.jms.TopicConnectionFactory . Durable subscription names are unique and only valid within the scope of a client identifier. To create or reactivate a durable subscriber, the connection must have a valid client identifier. The JMS specification ensures that client identifiers are unique and that a given client identifier is allowed to be used by only one active connection at a time. |
|
guest |
Specifies the user name for connecting to the Message Queue software. For JMS resources of the Type javax.jms.TopicConnectionFactory or javax.jms.QueueConnectionFactory. |
|
guest |
Specifies the password for connecting to the Message Queue software. For JMS resources of the Type javax.jms.TopicConnectionFactory or javax.jms.QueueConnectionFactory. |
|
ReconnectAttempts |
6 |
Specifies the number of attempts to connect (or reconnect) for each address in the imqAddressList before the client runtime moves on to try the next address in the list. A value of -1 indicates that the number of reconnect attempts is unlimited (the client runtime attempts to connect to the first address until it succeeds). |
ReconnectInterval |
30000 |
Specifies the interval between reconnect attempts in milliseconds. This applies to attempts on each address in the imqAddressList and on successive addresses in the list. If too short, this time interval does not give a broker time to recover. If too long, the reconnect might represent an unacceptable delay. |
ReconnectEnabled |
false |
If true, specifies that the client runtime attempts to reconnect to a message server (or the list of addresses in imqAddressList) when a connection is lost. |
AddressListBehavior |
priority |
Specifies whether connection attempts are in the order of addresses in the imqAddressList attribute (priority) or in a random order (random). If many clients are attempting a connection using the same connection factory, use a random order to prevent them from all being connected to the same address. |
AddressListIterations |
-1 |
Specifies the number of times the client runtime iterates through the imqAddressList in an effort to establish (or reestablish) a connection. A value of -1 indicates that the number of attempts is unlimited. |
false |
Deprecated. Use the equivalent attribute. |
|
false |
Deprecated. Use the equivalent attribute. |
|
false |
Deprecated. Use the equivalent attribute. |
|
true |
Deprecated. Use the equivalent attribute. |
All JMS administered object resource properties that worked with version 7 of the Communications Server are supported for backward compatibility.
Specifies a deployed connector module.
The following table describes subelements for the connector-module element.
Table 1–36 connector-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the connector-module element.
Table 1–37 connector-module Attributes
Defines the connection factory object of a specific connection definition in a connector (resource adapter).
The following table describes subelements for the connector-resource element.
Table 1–38 connector-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the connector-resource element.
Table 1–39 connector-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
none |
Specifies the name of the associated connector connection pool, defined in a connector-connection-pool element. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |
Configures the connector service.
none
The following table describes attributes for the connector-service element.
Table 1–40 connector-service Attributes
Attribute |
Default |
Description |
---|---|---|
30 |
(optional) Specifies the maximum time allowed during application server shutdown for the ResourceAdapter.stop() method of a connector module’s instance to complete. Resource adapters that take longer to shut down are ignored, and Communications Server shutdown continues. |
References a target cluster to which requests are forwarded by a converged load balancer.
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.
none
The following table describes attributes for the converged-lb-cluster-ref element.
Table 1–41 converged-lb-cluster-ref Attributes
Attribute |
Default |
Description |
---|---|---|
none |
References the name attribute of a cluster element. |
|
true |
(optional) If true, specifies that a configured cluster load balances incoming requests to itself. If true, the parent converged-lb-config element must have exactly one converged-lb-cluster-ref subelement. In this case, the load balancer is an intrinsic component of the participating server instances in the cluster. For production environments, only the true setting is supported. |
Defines a converged load balancer configuration, which can be referenced by a converged-load-balancer.
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.
The following table describes subelements for the converged-lb-config element.
Table 1–42 converged-lb-config Subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies the load balancing policy used by the converged load balancer. |
|
one or more; only one if this subelement's selfloadbalance attribute is true; zero if a server-ref is defined |
References a cluster. This element contains some attributes related to load balancing. |
|
one or more; zero if a converged-lb-cluster-ref is defined |
References a stand-alone server instance, which does not belong to a cluster. The referenced server element contains some attributes related to load balancing. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the converged-lb-config element.
Table 1–43 converged-lb-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the converged load balancer configuration. |
The following table describes properties for the converged-lb-config element.
Table 1–44 converged-lb-config Properties
Property |
Default |
Description |
---|---|---|
1 |
Specifies the factor by which a single recovered server instance is incrementally included in load distribution. Allowed values are decimal numbers between 0 and 1. The load factor starts at zero and increases by load-increase-factor every load-factor-increase-period-in-seconds until it reaches 1. For example, if load-increase-factor is set to 0.1 and load-factor-increase-period-in-seconds is set to 60, it takes ten minutes for a recovered instance to be fully included in load distribution. The load-increase-factor and load-factor-increase-period-in-seconds properties are applicable to all SIP requests and to HTTP requests for converged applications only if data-centric rules are specified. The load-increase-factor and load-factor-increase-period-in-seconds properties have no effect on the round-robin algorithm, which is applicable to HTTP requests for pure web applications. |
|
0 |
Specifies the number of seconds between load factor increases for a recovered server instance. If load-factor-increase-period-in-seconds is set to zero, load-increase-factor has no effect. The load factor for the recovered instance becomes 1 immediately. If load-factor-increase-period-in-seconds is set and load-increase-factor is not set, the recovered instance gets no load for load-factor-increase-period-in-seconds. After load-factor-increase-period-in-seconds lapses, the load factor for the recovered instance becomes 1. |
|
false |
If true, specifies that UDP responses are sent to the client from the back end instead of the front end, saving an extra network hop. |
Contains converged load balancer configurations.
The following table describes subelements for the converged-lb-configs element.
Table 1–45 converged-lb-configs Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a converged load balancer configuration. |
Specifies the load balancing policy used by the converged load balancer.
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.
The following table describes subelements for the converged-lb-policy element.
Table 1–46 converged-lb-policy Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the converged-lb-policy element.
Table 1–47 converged-lb-policy Attributes
Attribute |
Default |
Description |
---|---|---|
round-robin |
(optional) Specifies the load balancing policy for pure HTTP requests. This attribute applies to the HTTP part of converged HTTP/SIP requests if dcr-file is not specified. The only allowed value is round-robin, which means that the load balancer cycles through the cluster's server instances in a specified order. |
|
from-tag,call-id |
(optional) Specifies the load balancing policy for SIP requests if dcr-file is not specified. Specifies the parameters on which a consistent hashing policy is applied to obtain the hash key. The default is the only allowed value. |
|
none |
(optional) Specifies the data-centric-rules.xml file path name, which provides the rules for applying consistent hashing on SIP and converged HTTP/SIP requests. By default this file is not specified. If specified, this file takes precedence over the http and sip attributes. This can be an absolute or relative path. A relative path is relative to domain-dir/cluster/config. If a request doesn't match any DCR file rules, a hash key is generated using from-tag,call-id. For an HTTP request, this is the remote host port and address. |
Defines and configures a converged load balancer. For more information about load balancing in the Communications Server, see the Sun GlassFish Communications Server 2.0 High Availability Administration Guide.
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.
The following table describes subelements for the converged-load-balancer element.
Table 1–48 converged-load-balancer Subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies the proxy configuration for the converged load balancer. |
The following table describes attributes for the converged-load-balancer element.
Table 1–49 converged-load-balancer Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a unique name for the load balancer. |
|
domain-dir/cluster/config/converged-loadbalancer.xml |
Specifies the load balancer's configuration file, converged-loadbalancer.xml. This can be an absolute or relative path. A relative path is relative to domain-dir/cluster/config. |
|
false |
(optional) If true, configuration file changes are propagated to load balancer instances immediately. |
|
none |
Specifies the name of the converged-lb-config used by the load balancer. |
Defines a custom resource, which specifies a custom server-wide resource object factory. Such object factories implement the javax.naming.spi.ObjectFactory interface.
The following table describes subelements for the custom-resource element.
Table 1–50 custom-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the custom-resource element.
Table 1–51 custom-resource Attributes
Defines a domain administration server configuration. The domain administration server runs the Administration Console.
The following table describes subelements for the das-config element.
Table 1–52 das-config Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the das-config element. For more information about deployment topics such as dynamic reloading and autodeployment, see the Sun GlassFish Communications Server 2.0 Developer’s Guide.
Table 1–53 das-config Attributes
Contains a text description of the parent element.
admin-object-resource, appclient-module, connector-connection-pool, connector-module, connector-resource, custom-resource, ejb-module, event, extension-module, external-jndi-resource, j2ee-application, jdbc-connection-pool, jdbc-resource, lifecycle-module, mail-resource, management-rule, mbean, persistence-manager-factory-resource, property, system-property, transformation-rule, web-module
none - contains data
Configures the Diagnostic Service, which lets you generate a diagnostic report for troubleshooting in case of Communications Server malfunctioning such as exceptions, performance bottlenecks, or unexpected results.
The following table describes subelements for the diagnostic-service element.
Table 1–54 diagnostic-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the diagnostic-service element.
Table 1–55 diagnostic-service Attributes
Attribute |
Default |
Description |
---|---|---|
true |
(optional) If true, computes a checksum of binaries. |
|
true |
(optional) If true, captures the output of the asadmin verify-domain-xml command. |
|
true |
(optional) If true, captures the log generated during Communications Server installation. |
|
true |
(optional) If true, collects operating system level information. |
|
true |
(optional) If true, captures application deployment descriptors in plain text. If any deployment descriptors contain confidential information, you should set it to false. |
|
INFO |
(optional) Specifies the log level for the diagnostic report. See module-log-levels for a description of log levels. If set to OFF, log contents are not captured. |
|
500 |
(optional) Specifies the maximum number of log entries captured. |
Defines a domain. This is the root element; there can only be one domain element in a domain.xml file.
none
The following table describes subelements for the domain element.
Table 1–56 domain Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains deployed Java EE applications, Java EE modules, and lifecycle modules. |
|
zero or one |
Contains configured resources. |
|
only one |
Contains configurations. |
|
only one |
Contains server instances. |
|
zero or one |
Contains clusters. |
|
zero or one |
Contains node agents. |
|
zero or one |
Contains load balancing configurations. |
|
zero or one |
Contains converged load balancing configurations. |
|
zero or one |
Contains load balancers. |
|
zero or more |
Specifies a system property. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the domain element.
Table 1–57 domain Attributes
Attribute |
Default |
Description |
---|---|---|
domain-dir/applications |
(optional) Specifies the absolute path where deployed applications reside for this domain. |
|
domain-dir/logs |
(optional) Specifies where the domain’s log files are kept. The directory in which the log is kept must be writable by whatever user account the server runs as. See the log-service description for details about logs. |
|
operating system default |
(optional) Specifies the domain’s language. |
Identifies the trusted host on the network using a domain name, for example, sun.com or company22.com.
none - contains data
Configures the EJB container. Stateless session beans are maintained in pools. Stateful session beans have session affinity and are cached. Entity beans associated with a database primary key are also cached. Entity beans not yet associated with a primary key are maintained in pools. Pooled entity beans are used to run ejbCreate() and finder methods.
The following table describes subelements for the ejb-container element.
Table 1–58 ejb-container Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures the EJB timer service. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the ejb-container element.
Table 1–59 ejb-container Attributes
Attribute |
Default |
Description |
---|---|---|
32 |
(optional) Specifies the initial and minimum number of beans maintained in the pool. Must be 0 or greater and less than max-pool-size . Bean instances are removed from the pool and returned after use. The pool is replenished or cleaned up periodically to maintain this size. Applies to stateless session beans and entity beans. |
|
16 |
(optional) Specifies the number of beans to be removed when the pool-idle-timeout-in-seconds timer expires. A cleaner thread removes any unused instances. Must be 0 or greater and less than max-pool-size . The pool is not resized below the steady-pool-size. Applies to stateless session beans and entity beans. |
|
64 |
(optional) Specifies the maximum number of beans that can be created to satisfy client requests. A value of 0 indicates an unbounded pool. Applies to stateless session beans and entity beans. |
|
32 |
(optional) Specifies the number of beans to be:
|
|
512 |
(optional) Specifies the maximum number of beans in the cache. A value of 0 indicates an unbounded cache. Applies to stateful session beans and entity beans. |
|
600 |
(optional) Specifies the maximum time that a bean can remain idle in the pool. After this amount of time, the pool can remove this bean. A value of 0 specifies that idle beans can remain in the pool indefinitely. Applies to stateless session beans and entity beans. |
|
600 |
(optional) Specifies the maximum time that a bean can remain idle in the cache. After this amount of time, the container can passivate this bean. A value of 0 specifies that beans never become candidates for passivation. Applies to stateful session beans and entity beans. |
|
5400 |
(optional) Specifies the amount of time that a bean can remain passivated before it is removed from the session store. A value of 0 specifies that the container does not remove inactive beans automatically. If removal-timeout-in-seconds is less than or equal to cache-idle-timeout-in-seconds, beans are removed immediately without being passivated. The session-store attribute of the server element determines the location of the session store. Applies to stateful session beans. |
|
nru |
(optional) Specifies how stateful session beans are selected for passivation. Allowed values are fifo, lru, and nru :
|
|
B |
(optional) Determines which commit option is used for entity beans. Legal values are B or C. |
|
domain-dir/session-store |
(optional) Specifies the directory where passivated stateful session beans and persisted HTTP sessions are stored in the file system. |
Enables availability in the EJB container, including stateful session bean (SFSB) state persistence. For additional replicated session persistence properties you can set, see availability-service.
The following table describes subelements for the ejb-container-availability element.
Table 1–60 ejb-container-availability Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the ejb-container-availability element.
Table 1–61 ejb-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 SFSBs 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. |
|
ha |
(optional) Specifies the session persistence and passivation mechanism for SFSBs that have availability enabled. Allowed values are file (the file system) and replicated (other servers). If set to file, the ejb-container element’s session-store attribute specifies the file system location where the passivated session bean state is stored. Checkpointing to the file system is useful for internal testing but is not supported for production environments. |
|
file |
(optional) Specifies the passivation mechanism for SFSBs that do not have availability enabled. Allowed values are file and replicated. |
Specifies a deployed EJB module.
The following table describes subelements for the ejb-module element.
Table 1–62 ejb-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Configures a web service endpoint. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the ejb-module element.
Table 1–63 ejb-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the EJB module. |
|
none |
The location of the EJB module in the Communications Server file system. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether the EJB module is enabled. |
none |
(optional) Specifies an absolute or relative path to libraries specific to this module or application. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. To include more than one path, use a system-specific separator, such as a colon for Solaris or a semicolon for Windows. The libraries are made available to the application in the order in which they are specified. |
|
false |
(optional) Specifies whether availability is enabled in this EJB module for SFSB checkpointing (and potentially passivation). Availability must also be enabled for the application or stand-alone EJB module during deployment. For more information about availability, see availability-service. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
Configures the EJB timer service.
The following table describes subelements for the ejb-timer-service element.
Table 1–64 ejb-timer-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the ejb-timer-service element.
Table 1–65 ejb-timer-service Attributes
Attribute |
Default |
Description |
---|---|---|
7000 |
(optional) Specifies the minimum time before an expiration for a particular timer can occur. This guards against extremely small timer increments that can overload the server. |
|
1 |
(optional) Specifies the maximum number of times the EJB timer service attempts to redeliver a timer expiration due for exception or rollback. |
|
jdbc/__TimerPool |
(optional) Overrides, for the cluster or server instance, the cmp-resource value specified in sun-ejb-jar.xml for the timer service system application (__ejb_container_timer_app ). |
|
5000 |
(optional) Specifies how long the EJB timer service waits after a failed ejbTimeout delivery before attempting a redelivery. |
Defines the event that triggers the action associated with a management rule.
Predefined events are provided with the Communications Server. You can configure these events by changing event element attributes and properties.
You can create custom events by creating custom MBeans that implement the JMX NotificationEmitter interface. For more information about MBeans, see the Sun GlassFish Communications Server 2.0 Developer’s Guide and http://java.sun.com/javase/6/docs/api/javax/management/package-summary.html. For information about monitor MBeans, see http://java.sun.com/javase/6/docs/api/javax/management/monitor/package-summary.html.
If multiple rules are associated with the same event, ordering of action execution is not guaranteed.
The following table describes subelements for the event element.
Table 1–66 event Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the event element.
Table 1–67 event Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the type of event that triggers the management rule's action. Allowed values are as follows. The cluster, lifecycle, log, monitor, timer, and trace types are predefined events provided by the Communications Server. Note – 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.
For descriptions of required and optional properties corresponding to each of these types, see the following table. |
|
INFO |
(optional) Specifies the level at which to log the event occurrence. For information about log levels, see module-log-levels. Applicable only if record-event is set to true. |
|
true |
(optional) Specifies whether the occurrence of the event is logged. If no action is specified for the parent management-rule, the event is logged regardless of this setting. Note – Setting the type to log is different from setting record-event to true. The former specifies what the event is. The latter specifies what happens after the event occurs. |
The following table describes properties for the event element. Property names are case insensitive.
Table 1–68 event Properties
Event Type |
Property |
Values |
Description |
---|---|---|---|
cluster |
start, stop, fail |
Notifies when the GMS starts, stops, or reports failure of a server instance. |
|
cluster |
A comma-separated list of server instance names, or * for all server instances |
Specifies the server instances about which GMS notifications are given. |
|
lifecycle |
ready, shutdown, termination |
Specifies a server life cycle event. Values correspond to events defined in the com.sun.appserv.server.LifecycleEvent interface. |
|
log |
A comma-separated list of logger names, or * for all loggers, which is the default |
(optional) Notifies when the specified loggers write messages to the server log. For a list of logger names, see module-log-levels. |
|
log |
A comma-separated list of log levels |
(optional) Notifies when messages of the specified level are written to the server log. For information about log levels, see module-log-levels. |
|
monitor |
A name attribute of a user-defined mbean, or a JMX ObjectName for a system mbean |
Specifies the name of the monitored MBean. Either this property or observedObject must be specified. |
|
monitor |
An object-name attribute of a user-defined mbean, or a JMX ObjectName for a system mbean |
Specifies the name of the monitored MBean. Either this property or observedMbean must be specified. |
|
monitor |
An mbean Attribute name |
Specifies the monitored attribute of the monitored MBean. |
|
monitor |
CounterMonitor, GaugeMonitor, StringMonitor |
The type of monitoring of the attribute. |
|
monitor |
Time interval in seconds (long int) |
(optional) Specifies the granularity at which the monitoring data should be collected. |
|
monitor |
true or false |
Specifies that the attribute value must match the stringToCompare value. Either this property or notifyDiffer is required if the monitor type is StringMonitor. |
|
monitor |
true or false |
Specifies that the attribute value must not match the stringToCompare value. Either this property or notifyMatch is required if the monitor type is StringMonitor. |
|
monitor |
A String |
Specifies the value to which the attribute value is compared. Required if the monitor type is StringMonitor. |
|
monitor |
byte, double, float, int, long, short |
Specifies the type of the numeric value being monitored. Required if the monitor is of type CounterMonitor or GaugeMonitor. |
|
monitor |
true or false |
Specifies the difference mode flag value common to all observed MBeans. Required if the monitor is of type CounterMonitor or GaugeMonitor. |
|
monitor |
A positive number of the type specified by numberType |
Specifies a value above which notification occurs. Required if the monitor is of type CounterMonitor. |
|
monitor |
A positive number of the type specified by numberType |
(optional) Specifies that the event should be re-triggered when the initThreshold value plus this offset value is reached. Applicable if the monitor is of type CounterMonitor. |
|
monitor |
A positive number of the type specified by numberType |
(optional) Specifies the modulus value common to all observed MBeans. Applicable if the monitor is of type CounterMonitor. |
|
monitor |
A positive number of the type specified by numberType |
Specifies the upper limit of the range within which notification occurs. Required if the monitor is of type GaugeMonitor. |
|
monitor |
A positive number of the type specified by numberType |
Specifies the lower limit of the range within which notification occurs. Required if the monitor is of type GaugeMonitor. |
|
notification |
name of mbean |
Specifies a custom MBean that implements the JMX NotificationEmitter interface. Either this property or sourceObjectName must be specified. |
|
notification |
object-name of mbean |
Specifies a custom MBean that implements the JMX NotificationEmitter interface. Either this property or sourceMBean must be specified. |
|
notification |
The notification type |
(optional) Specifies the notification type. If this property is specified, the action of the parent management-rule is performed only if the notification type emitted is same as this property's value. |
|
timer |
Input format determined by pattern property |
Begins notification at the specified date and time. |
|
timer |
SimpleDateFormat pattern |
(optional) Specifies the date and time input format. The default is mm/dd/yyyy hh:mm:ss. |
|
timer |
Time interval in milliseconds (long int) |
(optional) Notification repeats at the specified time interval. |
|
timer |
A positive number (long int) |
(optional) Specifies the number of times notification occurs. |
|
timer |
A String |
(optional) Specifies a message that is delivered as part of timer notification. |
|
trace |
web_component_method_entry, web_component_method_exit, ejb_component_method_entry, ejb_component_method_exit, request_start, request_end |
Notifies at the specified trace point. |
|
trace |
An IP address |
Specifies the IP address for which trace notifications are sent. |
|
trace |
A String |
Specifies the caller principal for which trace notifications are sent. |
|
trace |
A String |
Specifies the component name for which trace notifications are sent. |
Specifies a deployed extension module.
The following table describes subelements for the extension-module element.
Table 1–69 extension-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the extension-module element.
Table 1–70 extension-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the extension module. |
|
none |
The location of the extension module in the Communications Server file system. |
|
none |
Specifies a String that identifies the extension module type, which the runtime uses to find the appropriate add-on container. When an extension module is registered with the Communications Server, the Communications Server specifies the module type automatically. For example, the module type for a Session Initiation Protocol (SIP) servlet is com.sun.enterprise.deployment.backend.extensions.sip.SipArchiveDeployer. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether the extension module is enabled. |
none |
(optional) Specifies an absolute or relative path to libraries specific to this module or application. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. To include more than one path, use a system-specific separator, such as a colon for Solaris or a semicolon for Windows. The libraries are made available to the application in the order in which they are specified. |
|
false |
(optional) Specifies whether availability is enabled in this extension module. Availability must also be enabled for the application or stand-alone extension module during deployment. For more information about availability, see availability-service. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
The following table describes properties for the extension-module element.
Table 1–71 extension-module Properties
Property |
Default |
Description |
---|---|---|
none |
The context root at which the SIP or converged web/SIP extension module is deployed. The context root can be the empty string or just /. The context root can start with the / character, but doesn’t have to. For load balancing to work, SIP or converged web/SIP extension module context roots must be unique within a cluster. See the Sun GlassFish Communications Server 2.0 High Availability Administration Guide for more information about load balancing. Note – 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. |
|
false |
If true, specifies that the SIP extension module contains both SIP and HTTP servlets and is converged. If false, specifies that the SIP extension module contains only SIP servlets. |
Defines a resource that resides in an external JNDI repository. For example, a generic Java object could be stored in an LDAP server. An external JNDI factory must implement the javax.naming.spi.InitialContextFactory interface.
The following table describes subelements for the external-jndi-resource element.
Table 1–72 external-jndi-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the external-jndi-resource element.
Table 1–73 external-jndi-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
none |
Specifies the JNDI lookup name for the resource. |
|
none |
Specifies the fully qualified type of the resource. |
|
none |
Specifies the fully qualified name of the factory class, which implements javax.naming.spi.InitialContextFactory. For more information about JNDI, see the Sun GlassFish Communications Server 2.0 Developer’s Guide. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |
Configures the filter class that filters alerts from notification emitters. See also listener-config.
The following table describes subelements for the filter-config element.
Table 1–74 filter-config Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the filter-config element.
Table 1–75 filter-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the class name of the filter. |
Configures the Group Management Service (GMS), an in-process service that provides cluster monitoring, cluster membership, and group communication services. The GMS performs the following functions:
Notifies registered modules in an Communications Server instance when one or more member instances are added to or removed from a cluster, or are suspected or confirmed to have failed.
Provides the ability to send and receive messages between a group of processes.
The GMS is built atop a configurable stack of group membership discovery and health monitoring protocols. These protocols have properties that can be changed for a given network and deployment topology. Protocols in the GMS are as follows:
Failure detection protocol - enables its members to periodically monitor other group members to determine their availability in the group.
Discovery protocol - is used for discovery of the group and its members.
Verify failure protocol - verifies suspect instances by adding a verification layer to mark a failure suspicion as a confirmed failure.
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.
The following table describes subelements for the group-management-service element.
Table 1–76 group-management-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the group-management-service element.
Table 1–77 group-management-service Attributes
Attribute |
Default |
Description |
---|---|---|
3 |
(optional) Specifies the maximum number of monitoring attempts before the GMS confirms that a failure is suspected in the group. |
|
2000 |
(optional) Specifies the time between monitoring attempts. |
|
2000 |
(optional) Specifies the time that the GMS waits for discovery of other members in the group. |
|
1500 |
(optional) Specifies the timeout after which a suspected failure is marked as verified. |
Defines a health checker for the parent server-ref or cluster-ref element.
none
The following table describes attributes for the health-checker element.
Table 1–78 health-checker Attributes
Attribute |
Default |
Description |
---|---|---|
/ |
Specifies the URL to ping to determine the health state of a listener. This must be a relative URL. |
|
30 |
Specifies the interval between health checks. A value of zero means that health checking is disabled. |
|
10 |
Specifies the maximum time in which a server must respond to a health check request to be considered healthy. If interval-in-seconds is greater than zero, timeout-in-seconds must be less than or equal to interval-in-seconds. |
Defines an access log file for a virtual-server. The access-log subelement of the virtual server’s parent http-service element determines the access log file’s format and rotation settings.
none
The following table describes attributes for the http-access-log element.
Table 1–79 http-access-log Attributes
Attribute |
Default |
Description |
---|---|---|
${com.sun.aas.instanceRoot}/logs/access |
(optional) Specifies the location of the access log file. |
|
true |
(optional) If true, specifies that only the IP address of the user agent is listed. If false, performs a DNS lookup. |
Configures the HTTP file cache.
none
The following table describes attributes for the http-file-cache element.
Table 1–80 http-file-cache Attributes
Attribute |
Default |
Description |
---|---|---|
false (developer profile) true (cluster profile) |
(optional) If true, enables the file cache. |
|
false (developer profile) true (cluster profile) |
(optional) If true, enables caching of the file content if the file size exceeds the small-file-size-limit-in-bytes. |
|
30 |
(optional) Specifies the maximum age of a file cache entry. |
|
537600 |
(optional) Specifies the maximum size of a file that can be cached as a memory mapped file. |
|
10485760 |
(optional) Specifies the total size of all files that are cached as memory mapped files. |
|
2048 |
(optional) Specifies the maximum size of a file that can be read into memory. |
|
1048576 |
(optional) Specifies the total size of all files that are read into memory. |
|
false |
(optional) If true, enables the use of TransmitFileSystem calls. Meaningful only for Windows. |
|
1024 |
(optional) Specifies the maximum number of files in the file cache. |
|
0 |
(optional) Specifies the initial number of hash buckets. |
Defines an HTTP listen socket. The connection-pool subelement of the parent http-service element also configures some listen socket settings.
The following table describes subelements for the http-listener element.
Table 1–81 http-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 http-listener element.
Table 1–82 http-listener Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The unique listener name. An http-listener name cannot begin with a number. |
|
none |
IP address of the listener. Can be in dotted-pair or IPv6 notation. Can be any (for INADDR_ANY) to listen on all IP addresses. Can be a hostname. |
|
none |
Port number on which the listener listens. Legal values are 1 - 65535. On UNIX, creating sockets that listen on ports 1 - 1024 requires superuser privileges. Configuring an SSL listener to listen on port 443 is standard. |
|
none |
(optional) Specifies the external port on which the connection is made. |
|
(optional) Deprecated. Do not use. |
||
false |
(optional) If true, uses a blocking socket for servicing a request. |
|
1 |
(optional) Specifies the number of processors in the machine. To set the number of request processing threads, use the thread-count attribute of the request-processing element. |
|
false |
(optional) Determines whether the listener runs SSL. To turn SSL2 or SSL3 on or off and set ciphers, use an ssl subelement. |
|
none |
References the id attribute of the default virtual-server for this particular listener. |
|
none |
Tells the server what to put in the host name section of any URLs it sends to the client. This affects URLs the server automatically generates; it doesn’t affect the URLs for directories and files stored in the server. If your server uses an alias, the server-name should be the alias name. If a colon and port number are appended, that port is used in URLs the server sends to the client. If load balancing is enabled, use the server name of the load balancer. |
|
none |
(optional) If the listener is supporting non-SSL requests and a request is received for which a matching <security-constraint> requires SSL transport, the request is automatically redirected to the port number specified here. If load balancing is enabled, use the redirect port of the load balancer. |
|
true |
(optional) If true, X-Powered-By headers are used according to the Servlet 2.4 and JSP 2.0 specifications. |
|
enabled |
true |
(optional) Determines whether the listener is active. If set to false, any attempts to connect to the listener result in a socket exception (java.net.ConnectException). In Communications Server versions prior to 9.1, a listener whose enabled attribute was set to false returned a 404 response code for any requests sent to it. To achieve this behavior in the current Communications Server version, set the listener's enabled attribute to true, and set every associated virtual server's state to off. A virtual-server lists its associated listeners in its http-listeners attribute. |
type |
default |
Specifies the listener type for machines with multiple IP addresses that have separate internal and external communication. Allowed values are as follows:
|
The following table describes properties for the http-listener element. Any of these properties can be defined as an http-service property, so that it applies to all http-listener elements.
Table 1–83 http-listener Properties
Property |
Default |
Description |
---|---|---|
true |
If true, recycles internal objects instead of using the VM garbage collector. |
|
0 |
Specifies the number of reader threads, which read bytes from the non-blocking socket. |
|
4096 |
Specifies the length of the acceptor thread queue. Once full, connections are rejected. |
|
4096 |
Specifies the length of the reader thread queue. Once full, connections are rejected. |
|
true |
If true, specifies that the NIO direct ByteBuffer is used. In a limited resource environment, it might be faster to use non-direct Java's ByteBuffer by setting a value of false. |
|
false |
If true, indicates that this http-listener element receives traffic from an SSL-terminating proxy server. Overrides the authPassthroughEnabled property of the parent http-service element. |
|
com.sun.enterprise.web.ProxyHandlerImpl |
Specifies the fully qualified class name of a custom implementation of the com.sun.appserv.ProxyHandler abstract class that this http-listener uses. Only used if the authPassthroughEnabled property of this http-listener and the parent http-service element are both set to true. Overrides the proxyHandler property of the parent http-service element. |
|
none |
Specifies a comma-separated list of protocols that can use the same port. Allowed values are ws/tcp (SOAP over TCP), http, https and tls. For example, if you set this property to http,https and set the port to 4567, you can access the port with either http://host:4567/ or https://host:4567/. Specifying this property at the http-service level overrides settings at the http-listener level. If this property is not set at either level, this feature is disabled. |
|
4096 |
Specifies the size, in bytes, of the buffer to be provided for input streams created by HTTP listeners. |
|
30 |
Specifies the number of seconds HTTP listeners wait, after accepting a connection, for the request URI line to be presented. |
|
250 |
Specifies the maximum number of HTTP requests that can be pipelined until the connection is closed by the server. Set this property to 1 to disable HTTP/1.0 keep-alive, as well as HTTP/1.1 keep-alive and pipelining. |
|
true |
If true, enables the TRACE operation. Set this property to false to make the Communications Server less susceptible to cross-site scripting attacks. |
|
false |
If true, enables Comet support for this listener. If your servlet or JSP page uses Comet technology, make sure it is initialized when the Communications Server starts up by adding the load-on-startup element to your web.xml file. For example: <servlet> <servlet-name>CheckIn</servlet-name> <servlet-class>CheckInServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> |
|
off |
Specifies use of HTTP/1.1 GZIP compression to save server bandwidth. Allowed values are:
If the content-length is not known, the output is compressed only if compression is set to on or force. |
|
text/html,text/xml,text/plain |
Specifies a comma-separated list of MIME types for which HTTP compression is used. |
|
empty String (regexp matching disabled) |
Specifies a comma-separated list of regular expressions matching user-agents of HTTP clients for which compression should not be used. |
|
none |
Specifies the minimum size of a file when compression is applied. |
|
none |
Specifies the location of the Certificate Revocation List (CRL) file to consult during SSL client authentication. This can be an absolute or relative file path. If relative, it is resolved against domain-dir. If unspecified, CRL checking is disabled. |
|
none |
Specifies the name of the trust management algorithm (for example, PKIX) to use for certification path validation. |
|
5 |
Specifies the maximum number of non-self-issued intermediate certificates that can exist in a certification path. This property is considered only if trustAlgorithm is set to PKIX. A value of zero implies that the path can only contain a single certificate. A value of -1 implies that the path length is unconstrained (there is no maximum). Setting a value less than -1 causes an exception to be thrown. |
|
true |
if false, the connection for a servlet that reads bytes slowly is closed after the connectionUploadTimeout is reached. |
|
5 |
Specifies the timeout for uploads. Applicable only if disableUploadTimeout is set to false. |
|
UTF-8 |
Specifies the character set used to decode the request URIs received on this HTTP listener. Must be a valid IANA character set name. Overrides the uriEncoding property of the parent http-service element. |
Configures HTTP protocol settings.
none
The following table describes attributes for the http-protocol element.
Table 1–84 http-protocol Attributes
Attribute |
Default |
Description |
---|---|---|
HTTP/1.1 |
(optional) Specifies the version of the HTTP protocol used. |
|
true |
(optional) If true, looks up the DNS entry for the client. |
|
ISO-8859-1;en;ISO-8859-1 |
(optional) Specifies the request type used if no MIME mapping is available that matches the file extension. The format is a semicolon-delimited string consisting of the content-type, encoding, language, and charset. |
|
text/html;ISO-8859-1;en;ISO-8859-1 |
(optional) Specifies the default response type. The format is a semicolon-delimited string consisting of the content-type, encoding, language, and charset. |
|
AttributeDeprecated |
(optional) Deprecated. Do not use. |
|
AttributeDeprecated |
(optional) Deprecated. Do not use. |
|
true |
(optional) Not implemented. Use ssl subelements of http-listener elements. |
Defines the HTTP service.
The following table describes subelements for the http-service element.
Table 1–85 http-service Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines access log settings for each http-access-log subelement of each virtual-server. |
|
one or more |
Defines an HTTP listen socket. |
|
one or more |
Defines a virtual server. |
|
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 HTTP protocol settings. |
|
zero or more |
Specifies a property or a variable. |
The following table describes properties for the http-service element. These properties apply to all http-listener subelements, except for accessLoggingEnabled, accessLogBufferSize, and accessLogWriterInterval, which apply to all virtual-server subelements.
Table 1–86 http-service Properties
Property |
Default |
Description |
---|---|---|
true |
If true, enables the monitoring cache. |
|
5000 |
Specifies the interval between refreshes of the monitoring cache. |
|
10000 |
Specifies the number of SSL sessions to be cached. |
|
86400 |
Specifies the interval at which SSL3 sessions are cached. |
|
100 |
Specifies the interval at which SSL2 sessions are cached. |
|
true |
If true, recycles internal objects instead of using the VM garbage collector. |
|
0 |
Specifies the number of reader threads, which read bytes from the non-blocking socket. |
|
4096 |
Specifies the length of the acceptor thread queue. Once full, connections are rejected. |
|
4096 |
Specifies the length of the reader thread queue. Once full, connections are rejected. |
|
true |
If true, specifies that the NIO direct ByteBuffer is used. In a limited resource environment, it might be faster to use non-direct Java's ByteBuffer by setting a value of false. |
|
false |
If true, indicates that the http-listener subelements receive traffic from an SSL-terminating proxy server, which is responsible for forwarding any information about the original client request (such as client IP address, SSL keysize, and authenticated client certificate chain) to the HTTP listeners using custom request headers. Each http-listener subelement can override this setting for itself. |
|
com.sun.enterprise.web.ProxyHandlerImpl |
Specifies the fully qualified class name of a custom implementation of the com.sun.appserv.ProxyHandler abstract class, which allows a back-end application server instance to retrieve information about the original client request that was intercepted by an SSL-terminating proxy server (for example, a load balancer). An implementation of this abstract class inspects a given request for the custom request headers through which the proxy server communicates the information about the original client request to the Communications Server instance, and returns that information to its caller. The default implementation reads the client IP address from an HTTP request header named Proxy-ip, the SSL keysize from an HTTP request header named Proxy-keysize, and the SSL client certificate chain from an HTTP request header named Proxy-auth-cert. The Proxy-auth-cert value must contain the BASE-64 encoded client certificate chain without the BEGIN CERTIFICATE and END CERTIFICATE boundaries and with \n replaced with % d% a. Only used if authPassthroughEnabled is set to true. Each http-listener subelement can override the proxyHandler setting for itself. |
|
none |
Specifies a comma-separated list of protocols that can use the same port. Allowed values are ws/tcp (SOAP over TCP), http, https and tls. For example, if you set this property to http,https and the port is 4567, you can access the port with either http://host:4567/ or https://host:4567/. Specifying this property at the http-service level overrides settings at the http-listener level. If this property is not set at either level, this feature is disabled. |
|
4096 |
Specifies the size, in bytes, of the buffer to be provided for input streams created by HTTP listeners. |
|
30 |
Specifies the number of seconds HTTP listeners wait, after accepting a connection, for the request URI line to be presented. |
|
250 |
Specifies the maximum number of HTTP requests that can be pipelined until the connection is closed by the server. Set this property to 1 to disable HTTP/1.0 keep-alive, as well as HTTP/1.1 keep-alive and pipelining. |
|
true |
If true, enables the TRACE operation. Set this property to false to make the Communications Server less susceptible to cross-site scripting attacks. |
|
false (developer and cluster profiles) |
If true, enables access logging for all virtual-server subelements that do not specify this property. If false, disables access logging for all virtual-server subelements that do not specify this property. |
|
32768 |
Specifies the size, in bytes, of the buffer where access log calls are stored. If the value is less than 5120, a warning message is issued, and the value is set to 5120. |
|
300 |
Specifies the number of seconds before the log is written to the disk. The access log is written when the buffer is full or when the interval expires. If the value is 0, the buffer is always written even if it is not full. This means that each time the server is accessed, the log message is stored directly to the file. |
|
false (developer and cluster profiles) |
If true, single sign-on is enabled by default for all web applications on all virtual servers on this server instance that are configured for the same realm. If false, single sign-on is disabled by default for all virtual servers, and users must authenticate separately to every application on each virtual server. The sso-enabled property setting of the virtual-server element overrides this setting for an individual virtual server. At the http-service level, you cannot change the sso-max-inactive-seconds and sso-reap-interval-seconds values from their defaults. However, you can change these values at the virtual-server level. |
|
true |
if false, the connection for a servlet that reads bytes slowly is closed after the connectionUploadTimeout is reached. |
|
5 |
Specifies the timeout for uploads. Applicable only if disableUploadTimeout is set to false. |
|
UTF-8 |
Specifies the character set used to decode the request URIs received on http-listener subelements that do not define this property. Must be a valid IANA character set name. |
Specifies identity assertion trust domain configuration information according to RFC 3325. P-asserted identity headers received from hosts and domains configured under this element can be trusted. A P-asserted identity header specifies the identity of a user who was authenticated at another node in the network.
If no identity-assertion-trust is defined, this represents presumed trust, that is, any identity assertion that is received is trusted based on a presumption that the network topology would prevent non-trusted assertions from reaching the server.
The following table describes subelements for the identity-assertion-trust element.
Table 1–87 identity-assertion-trust Subelements
Element |
Required |
Description |
---|---|---|
zero or more if no trust-handler is defined |
Specifies intermediate hosts and domains according to RFC 3325. |
|
zero or one if no trusted-entity is defined |
Specifies a custom trust handler according to RFC 3325. |
The following table describes attributes for the identity-assertion-trust element.
Table 1–88 identity-assertion-trust Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a unique identifier for the identity-assertion-trust element. |
|
false |
If true, specifies that this is the default identity-assertion-trust. There can be only one default identity-assertion-trust. |
Defines an IIOP listen socket. To enable SSL for this listener, include an ssl subelement.
The following table describes subelements for the iiop-listener element.
Table 1–89 iiop-listener Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines SSL parameters. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the iiop-listener element.
Table 1–90 iiop-listener Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The listener name. An iiop-listener name cannot begin with a number. |
|
none |
IP address of the listener. Can be in dotted-pair or IPv6 notation, or just a name. |
|
1072 |
(optional) Port number for the listener. Legal values are 1 - 65535. On UNIX, creating sockets that listen on ports 1 - 1024 requires superuser privileges. |
|
false |
(optional) Determines whether the listener runs SSL. To turn SSL2 or SSL3 on or off and set ciphers, use an ssl element. |
|
enabled |
true |
(optional) Determines whether the listener is active. |
Defines the IIOP service.
The following table describes subelements for the iiop-service element.
Table 1–91 iiop-service Subelements
Element |
Required |
Description |
---|---|---|
only one |
Configures the ORB. |
|
zero or one |
Defines SSL parameters for the ORB. |
|
zero or more |
Defines an IIOP listen socket. |
The following table describes attributes for the iiop-service element.
Table 1–92 iiop-service Attributes
Attribute |
Default |
Description |
---|---|---|
false |
(optional) If true, the server rejects unauthenticated requests and inserts an authentication-required bit in IORs sent to clients. |
Identifies the trusted host on the network using an IP address.
none - contains data
Specifies a deployed Java EE application.
The following table describes subelements for the j2ee-application element.
Table 1–93 j2ee-application Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Configures a web service endpoint. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the j2ee-application element.
Table 1–94 j2ee-application Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the application. |
|
none |
The location of the application in the Communications Server file system. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether the application is enabled. |
none |
(optional) Specifies an absolute or relative path to libraries specific to this module or application. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. To include more than one path, use a system-specific separator, such as a colon for Solaris or a semicolon for Windows. The libraries are made available to the application in the order in which they are specified. |
|
false |
(optional) Specifies whether availability is enabled in this Java EE application for HTTP session persistence and SFSB checkpointing (and potentially passivation). Availability must also be enabled for the application during deployment. For more information about availability, see availability-service. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
|
true |
(optional) Specifies whether Java Web Start access is permitted for application clients in this application. |
Specifies a Java Authorization Contract for Containers (JACC) provider for pluggable authorization.
The following table describes subelements for the jacc-provider element.
Table 1–95 jacc-provider Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the jacc-provider element.
Table 1–96 jacc-provider Attributes
Attribute |
Default |
Description |
---|---|---|
default |
Specifies the name of the JACC provider. |
|
com.sun.enterprise.security.provider.PolicyWrapper |
Corresponds to and can be overridden by the system property javax.security.jacc.policy.provider . |
|
com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl |
Corresponds to and can be overridden by the system property javax.security.jacc.PolicyConfigurationFactory.provider . |
Specifies Java Virtual Machine (JVM) configuration parameters.
The following table describes subelements for the java-config element.
Table 1–97 java-config Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures a profiler for use with the Communications Server. |
|
zero or more |
Contains JVM command line options. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the java-config element.
Table 1–98 java-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The path to the directory where the JDK is installed. |
|
false |
(optional) If true, the server starts up in debug mode ready for attachment with a JPDA-based debugger. |
|
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n |
(optional) Specifies JPDA (Java Platform Debugger Architecture) options. A list of debugging options is available at http://java.sun.com/products/jpda/doc/conninv.html#Invocation. For more information about debugging, see the Sun GlassFish Communications Server 2.0 Developer’s Guide. |
|
-iiop -poa -alwaysgenerate -keepgenerated -g |
(optional) Specifies options passed to the RMI compiler at application deployment time. The -keepgenerated option saves generated source for stubs and ties. For details about the rmic command, see http://java.sun.com/javase/6/docs/technotes/tools/solaris/rmic.html. |
|
-g |
(optional) Specifies options passed to the Java compiler at application deployment time. |
|
none |
(optional) Specifies a prefix for the server classpath. Only prefix this classpath to override Communications Server classes. Use this attribute with caution. |
|
none |
(optional) Specifies a suffix for the server classpath. |
|
none |
(optional) Specifies additions to the server classpath. Supported for backward compatibility. Use classpath-suffix instead. |
|
JVM classes |
(optional) Specifies additions to the system classpath, which is supplied to the JVM at server startup. These classes are loaded by the System Classloader. Note – Do not remove the default path. |
|
none |
(optional) Specifies a prefix for the native library path. The native library path is the automatically constructed concatenation of the Communications Server installation relative path for its native shared libraries, the standard JRE native library path, the shell environment setting (LD_LIBRARY_PATH on UNIX), and any path specified in the profiler element. Since this is synthesized, it does not appear explicitly in the server configuration. |
|
none |
(optional) Specifies a suffix for the native library path. |
|
none |
(optional) A comma separated list of class names, each of which must implement the com.sun.appserv.BytecodePreprocessor interface. Each of the specified preprocessor classes is called in the order specified. |
|
true |
(optional) If false, the CLASSPATH environment variable is read and appended to the Communications Server classpath. The CLASSPATH environment variable is added after the classpath-suffix, at the very end. For a development environment, this value should be set to false. To prevent environment variable side effects in a production environment, set this value to true. |
Defines the properties that are required for creating a JDBC connection pool.
The following table describes subelements for the jdbc-connection-pool element.
Table 1–99 jdbc-connection-pool Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the jdbc-connection-pool element. Changing the following attributes requires a server restart: datasource-classname, associate-with-thread, lazy-connection-association, and lazy-connection-enlistment.
Table 1–100 jdbc-connection-pool Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the connection pool. A jdbc-resource element’s pool-name attribute refers to this name. |
|
none |
Specifies the class name of the associated vendor-supplied data source. This class must implement javax.sql.DataSource, javax.sql.XADataSource , javax.sql.ConnectionPoolDatasource, or a combination. |
|
javax.sql.DataSource |
(optional) Specifies the interface the data source class implements. The value of this attribute can be javax.sql.DataSource, javax.sql.XADataSource , or javax.sql.ConnectionPoolDatasource. If the value is not one of these interfaces, the default is used. An error occurs if this attribute has a legal value and the indicated interface is not implemented by the data source class. |
|
8 |
(optional) Specifies the initial and minimum number of connections maintained in the pool. |
|
32 |
(optional) Specifies the maximum number of connections that can be created to satisfy client requests. |
|
60000 |
(optional) Specifies the amount of time, in milliseconds, that the caller is willing to wait for a connection. If 0, the caller is blocked indefinitely until a resource is available or an error occurs. |
|
2 |
(optional) Specifies the number of idle connections to be destroyed if the existing number of connections is above the steady-pool-size (subject to the max-pool-size limit). This is enforced periodically at the idle-timeout-in-seconds interval. An idle connection is one that has not been used for a period of idle-timeout-in-seconds. When the pool size reaches steady-pool-size, connection removal stops. |
|
300 |
(optional) Specifies the maximum time that a connection can remain idle in the pool. After this amount of time, the pool can close this connection. |
|
default JDBC driver isolation level |
(optional) Specifies the transaction isolation level on the pooled database connections. Allowed values are read-uncommitted, read-committed , repeatable-read, or serializable. Applications that change the isolation level on a pooled connection programmatically risk polluting the pool, which can lead to errors. See is-isolation-level-guaranteed for more details. |
|
true |
(optional) Applicable only when transaction-isolation-level is explicitly set. If true, every connection obtained from the pool is guaranteed to have the desired isolation level. This might impact performance on some JDBC drivers. Only set this attribute to false if you are certain that the hosted applications do not return connections with altered isolation levels. |
|
false |
(optional) Specifies whether connections have to be validated before being given to the application. If a resource’s validation fails, it is destroyed, and a new resource is created and returned. |
|
auto-commit |
(optional) Legal values are as follows:
|
|
none |
(optional) Specifies the table name to be used to perform a query to validate a connection. This parameter is mandatory if and only if connection-validation-method is set to table. |
|
false |
(optional) If true, closes all connections in the pool if a single validation check fails. This parameter is mandatory if and only if is-connection-validation-required is set to true. |
|
false |
(optional) If true, non-transactional connections can be made to the JDBC connection pool. These connections are not automatically enlisted with the transaction manager. |
|
false |
(optional) If true, non-Java-EE components, such as servlet filters, lifecycle modules, and third party persistence managers, can use this JDBC connection pool. The returned connection is automatically enlisted with the transaction context obtained from the transaction manager. Standard Java EE components can also use such pools. Connections obtained by non-component callers are not automatically closed at the end of a transaction by the container. They must be explicitly closed by the caller. |
|
0 |
Detects potential connection leaks by the application. A connection that is not returned back to the pool by the application within the specified period is assumed to be potentially leaking, and a stack trace of the caller is logged. A zero value disables leak detection. A nonzero value enables leak tracing. |
|
false |
If true, the pool will reclaim a connection after connection-leak-timeout-in-seconds occurs. |
|
0 |
Specifies the number of attempts to create a new connection. |
|
10 |
Specifies the time interval between attempts to create a connection when connection-creation-retry-attempts is greater than 0. |
|
0 |
Specifies the time interval within which a connection is validated at most once. Minimizes the number of validation calls. |
|
-1 |
Sets the query timeout property of a statement to enable termination of abnormally long running queries. The default value of -1 disables this feature. |
|
false |
If true, a connection is not enlisted in a transaction until it is used. If false, any connection object available to a transaction is enlisted in the transaction. |
|
false |
If true, a physical connection is not associated with a logical connection until it is used. If false, a physical connection is associated with a logical connection even before it is used. |
|
false |
If true, allows a connection to be saved as a ThreadLocal in the calling thread. This connection gets reclaimed only when the calling thread dies or when the calling thread is not in use and the pool has run out of connections. |
|
false |
If true, enables connection matching. You can set to false if connections are homogeneous. |
|
0 |
Specifies the number of times a connections is reused by the pool, after which it is closed. A zero value disables this feature. |
|
false |
If true, the application returns wrapped JDBC objects for Statement, PreparedStatement, CallableStatement, ResultSet, and DatabaseMetaData. |
Most JDBC drivers allow use of standard property lists to specify the user, password, and other resource configuration information. Although properties are optional with respect to the Communications Server, some properties might be necessary for most databases. For details, see the JDBC 4.0 Standard Extension API.
When properties are specified, they are passed to the vendor’s data source class (specified by the datasource-classname attribute) as is using setName(value) methods.
The user and password properties are used as the default principal if container managed authentication is specified and a default-resource-principal is not found in the application deployment descriptors.
The following table describes some common properties for the jdbc-connection-pool element.
Changing JDBC driver properties requires a server restart.
Table 1–101 jdbc-connection-pool Properties
Property |
Description |
---|---|
Specifies the user name for connecting to the database. |
|
Specifies the password for connecting to the database. |
|
Specifies the database for this connection pool. |
|
Specifies the database server for this connection pool. |
|
Specifies the port on which the database server listens for requests. |
|
Specifies the communication protocol. |
|
Specifies the initial SQL role name. |
|
Specifies an underlying XADataSource, or a ConnectionPoolDataSource if connection pooling is done. |
|
Specifies a text description. |
|
Specifies the URL for this connection pool. Although this is not a standard property, it is commonly used. |
|
Deprecated. Use the equivalent attribute. |
|
Deprecated. Use the equivalent attribute. |
|
Deprecated. Use the equivalent attribute. |
|
Deprecated. Use the equivalent attribute. |
Defines a JDBC (javax.sql.DataSource) resource.
The following table describes subelements for the jdbc-resource element.
Table 1–102 jdbc-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the jdbc-resource element.
Table 1–103 jdbc-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
none |
Specifies the name of the associated jdbc-connection-pool. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |
Configures the host of the built-in Java Message Service (JMS) that is managed by the Communications Server.
The following table describes subelements for the jms-host element.
Table 1–104 jms-host Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the jms-host element.
Table 1–105 jms-host Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the JMS host. |
|
machine-name |
(optional) Specifies the host name of the JMS host. |
|
7676 |
(optional) Specifies the port number used by the JMS provider. |
|
admin |
(optional) Specifies the administrator user name for the JMS provider. |
|
admin |
(optional) Specifies the administrator password for the JMS provider. |
Configures the built-in Java Message Service (JMS) that is managed by the Communications Server.
The following table describes subelements for the jms-service element.
Table 1–106 jms-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a host. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the jms-service element.
Table 1–107 jms-service Attributes
Attribute |
Default |
Description |
---|---|---|
60 |
(optional) Specifies the amount of time the server instance waits at startup for its configured default JMS host to respond. If there is no response, startup is aborted. If set to 0, the server instance waits indefinitely. |
|
EMBEDDED (DAS) or LOCAL (other server instances) |
Specifies the type of JMS service:
|
|
none |
(optional) Specifies the string of arguments supplied for startup of the corresponding JMS instance. |
|
none |
Specifies the name of the default jms-host. If type is set to LOCAL, this jms-host is automatically started at Communications Server startup. |
|
5 (developer profile) 60 (cluster profile) |
(optional) Specifies the interval between reconnect attempts. |
|
3 |
(optional) Specifies the number of reconnect attempts. |
|
true |
(optional) If true, reconnection is enabled. The JMS service automatically tries to reconnect to the JMS provider when the connection is broken. When the connection is broken, depending on the message processing stage, the onMessage() method might not be able to complete successfully or the transaction might be rolled back due to a JMS exception. When the JMS service reestablishes the connection, JMS message redelivery semantics apply. |
|
random |
(optional) Specifies whether the reconnection logic selects the broker from the imqAddressList in a random or sequential (priority) fashion. |
|
3 |
(optional) Specifies the number of times the reconnection logic iterates over the imqAddressList if addresslist-behavior is set to PRIORITY. |
|
mq |
(optional) Specifies the scheme for establishing connection with the broker. For example, specify http for connecting to the broker over HTTP. |
|
jms |
(optional) Specifies the type of broker service. If a broker supports SSL, the type of service can be ssljms. |
The following table describes properties for the jms-service element.
Table 1–108 jms-service Properties
Configures a JSR 160/255 compliant remote JMX connector, which handles the JMX communication between the domain administration server, the node agents, and the remote server instances. This JMX connector also handles JMX communication between an external management client and the domain administration server.
Only the system JMX connector is started by the server processes at startup. Do not configure additional JMX connectors.
The following table describes subelements for the jmx-connector element.
Table 1–109 jmx-connector Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines SSL parameters. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the jmx-connector element.
Table 1–110 jmx-connector Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the connector used by the designated system JMX connector for JMX communication between server instances. Do not modify this name. |
|
rmi_jrmp |
(optional) Specifies the protocol that this JMX connector supports. The only supported protocol is rmi_jrmp. Do not modify this value. |
|
0.0.0.0 |
Specifies the IP address of the naming service where the JMX connector server stub is registered. This is not the port of the server socket that does the actual JMX communication. This is the address of the network interface where the RMI registry is started. If your system has multiple network interfaces, modify this value so that only a particular interface is selected. |
|
8686 (DAS, all profiles; server instance, developer profile) 38686 (server instances, cluster profile) |
Specifies the port number on with the naming service (RMI registry) listens for RMI client connections. The only use of this naming service is to download the RMI stubs. If the default port is occupied, a free port is used. Legal values are 1 - 65535. On UNIX, creating sockets that listen on ports 1 - 1024 requires superuser privileges. |
|
admin-realm |
Specifies the name of an auth-realm subelement of the security-service element for the server instance that is running this JMX connector's server end. Note that this is a dedicated administration security realm. |
|
false (developer profile) true (cluster profile) |
(optional) Determines whether JMX communication is encrypted. |
Contains JVM command line options, for example:
<jvm-options>-Xdebug -Xmx128m</jvm-options>
For information about JVM options, see http://java.sun.com/docs/hotspot/VMOptions.html.
none - contains data
Configures keep-alive threads.
none
The following table describes attributes for the keep-alive element.
Table 1–111 keep-alive Attributes
Attribute |
Default |
Description |
---|---|---|
1 |
(optional) Specifies the number of keep-alive threads. The value must be 1 or greater. Not implemented if the parent element is sip-service. |
|
256 |
(optional) Specifies the maximum number of keep-alive connections. A value of 0 means requests are always rejected. A value of -1 sets no limit to the number of keep-alive connections. Not implemented if the parent element is sip-service. |
|
60 (http-service) 0 (sip-service) |
(optional) Specifies the maximum time for which a keep alive connection is kept open. A value of 0 or less means keep alive connections are kept open indefinitely. |
Defines a load balancer configuration, which can be referenced by a physical load-balancer.
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.
The following table describes subelements for the lb-config element.
Table 1–112 lb-config Subelements
Element |
Required |
Description |
---|---|---|
zero or more; zero if a server-ref is defined |
References a cluster. This element contains some attributes related to load balancing. |
|
zero or more; zero if a cluster-ref is defined |
References a server instance that does not belong to a cluster. The referenced server element contains some attributes related to load balancing. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the lb-config element.
Table 1–113 lb-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the load balancer configuration. |
|
60 |
(optional) Specifies the time within which a server must return a response or it is considered unhealthy. |
|
false |
(optional) If true, HTTPS requests to the load balancer result in HTTPS requests to the server. If false, HTTPS requests to the load balancer result in HTTP requests to the server. |
|
60 |
(optional) Specifies the interval between checks for changes to the load balancer configuration file (loadbalancer.xml). When changes are detected, the file is reloaded. A value of zero disables reloading. |
|
false |
(optional) If true, enables monitoring of load balancing. |
Contains load balancer configurations.
The following table describes subelements for the lb-configs element.
Table 1–114 lb-configs Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a load balancer configuration. |
Specifies a deployed lifecycle module. For more information about lifecycle modules, see the Sun GlassFish Communications Server 2.0 Developer’s Guide.
The following table describes subelements for the lifecycle-module element.
Table 1–115 lifecycle-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the lifecycle-module element.
Table 1–116 lifecycle-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the lifecycle module. |
|
none |
The fully qualified name of the lifecycle module’s class file, which must implement the com.sun.appserv.server.LifecycleListener interface. |
|
value of application-root attribute of domain element |
(optional) The classpath for the lifecycle module. Specifies where the module is located. |
|
none |
(optional) Determines the order in which lifecycle modules are loaded at startup. Modules with smaller integer values are loaded sooner. Values can range from 101 to the operating system’s MAXINT. Values from 1 to 100 are reserved. |
|
false |
(optional) Determines whether the server is shut down if the lifecycle module fails. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether the lifecycle module is enabled. |
Configures the listener class that listens for alerts from notification emitters. For example:
<listener-config listener-class-name="com.sun.enterprise.admin.notification.MailAlert" subcribe-listener-with="LogMBean,ServerStatusMonitor" > <property name="recipients" value="Huey@sun.com,Dewey@sun.com" /> <property name="fromAddress" value="Louie@sun.com" /> <property name="subject" value="Help!" /> <property name="includeDiagnostics" value="false" /> <property name="mailSMTPHost" value="ducks.sun.com" /> </listener-config>
The following table describes subelements for the listener-config element.
Table 1–117 listener-config Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the listener-config element.
Table 1–118 listener-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the class name of the listener. The com.sun.appserv.admin.notification.MailAlert class is provided with the Communications Server, but a custom listener can be used. |
|
none |
Specifies a comma-separated list of notification emitters to which the listener listens. The LogMBean and ServerStatusMonitor notification emitters are provided with the Communications Server, but custom emitters can be used. |
Defines and configures a load balancer. For more information about load balancing in the Communications Server, see the Sun GlassFish Communications Server 2.0 High Availability Administration Guide.
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.
The following table describes subelements for the load-balancer element.
Table 1–119 load-balancer Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the load-balancer element.
Table 1–120 load-balancer Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the load balancer. |
|
none |
Specifies the name of the lb-config used by the load balancer. |
|
false |
(optional) If true, changes to the specified lb-config are automatically applied to the load balancer. |
The following table describes properties for the load-balancer element.
Table 1–121 load-balancer Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies the host name or IP address for the load balancer. |
|
none |
Specifies the load balancer's administration port number. |
|
none |
Specifies the load balancer's proxy host used for outbound HTTP. |
|
none |
Specifies the load balancer's proxy port used for outbound HTTP. |
Contains load balancers.
The following table describes subelements for the load-balancers element.
Table 1–122 load-balancers Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a load balancer. |
Configures the server log file, which stores messages from the default virtual server. Messages from other configured virtual servers also go here, unless the log-file attribute is explicitly specified in the virtual-server element. The default name is server.log.
Other log files are configured by other elements:
A virtual server log file stores messages from a virtual-server element that has an explicitly specified log-file attribute. See virtual-server.
The access log file stores HTTP access messages from the default virtual server. The default name is access.log. See access-log and http-access-log.
The transaction log files store transaction messages from the default virtual server. The default name of the directory for these files is tx. See transaction-service.
The following table describes subelements for the log-service element.
Table 1–123 log-service Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies log levels. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the log-service element.
Table 1–124 log-service Attributes
Attribute |
Default |
Description |
---|---|---|
server.log in the directory specified by the log-root attribute of the domain element |
(optional) Overrides the name or location of the server log. The file and directory in which the server log is kept must be writable by the user account under which the server runs. An absolute path overrides the log-root attribute of the domain element. A relative path is relative to the log-root attribute of the domain element. If no log-root value is specified, it is relative to domain-dir/config . |
|
false |
(optional) If true, uses the UNIX syslog service to produce and manage logs. |
|
none |
(optional) Specifies a custom log handler to be added to end of the chain of system handlers to log to a different destination. |
|
none |
(optional) Specifies a log filter to do custom filtering of log records. |
|
false |
(optional) Deprecated and ignored. |
|
2000000 |
(optional) Log files are rotated when the file size reaches the specified limit. |
|
0 |
(optional) Enables time-based log rotation. The valid range is 60 minutes (1 hour) to 14400 minutes (10*24*60 minutes or 10 days). If the value is zero, the files are rotated based on the size specified in log-rotation-limit-in-bytes. If the value is greater than zero, log-rotation-timelimit-in-minutes takes precedence over log-rotation-limit-in-bytes . |
|
5 |
(optional) Specifies the number of most recent hours for which error statistics are retained in memory. The default and minimum value is 5 hours. The maximum value allowed is 500 hours. Larger values incur additional memory overhead. |
The following table describes properties for the log-service element.
Table 1–125 log-service Properties
Property |
Default |
Description |
---|---|---|
time-stamp,product-id,logger-name,thread-info,name-value-pairs,raw-message |
Specifies the format of the server log. The comma-separated format tokens can appear in any order and any of them can be omitted. |
|
8192 |
Specifies the maximum number of log records buffered in memory before being pushed to the server log. This property applies only if asynchronous logging has been enabled by specifying the org.glassfish.logging.async JVM option using the jvm-options element. |
|
60 |
Specifies the interval in seconds at which log messages are written to the server log. This property applies only if asynchronous logging has been enabled by specifying the org.glassfish.logging.async JVM option using the jvm-options element. |
Defines a JavaMail (javax.mail.Session) resource.
The following table describes subelements for the mail-resource element.
Table 1–126 mail-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the mail-resource element.
Table 1–127 mail-resource Attributes
You can set properties for the mail-resource element and then get these properties in a JavaMail Session object later. Every property name must start with a mail- prefix. The Communications Server changes the dash (-) character to a period (.) in the name of the property, then saves the property to the MailConfiguration and JavaMail Session objects. If the name of the property doesn’t start with mail-, the property is ignored.
For example, to define the property mail.password in a JavaMail Session object, first edit domain.xml as follows:
... <mail-resource jndi-name="mail/Session" ...> <property name="mail-password" value="adminadmin"/> </mail-resource> ...
After getting the JavaMail Session object, get the mail.password property to retrieve the value adminadmin, as follows:
String password = session.getProperty("mail.password");
For more information about JavaMail properties, see JavaMail API Documentation.
Configures a self-management rule, which associates a custom self-tuning, self-configuring, or self-healing action with an event in the Communications Server. The action is implemented by an MBean.
The following table describes subelements for the management-rule element.
Table 1–128 management-rule Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. This description is included in server log messages about the management rule. For more information on logging, see log-service and module-log-levels. |
|
only one |
Defines the event that triggers the action associated with a management rule. |
|
zero or one |
Specifies the action of this management rule. If no action is specified, occurrence of the associated event is logged. |
The following table describes attributes for the management-rule element.
Table 1–129 management-rule Attributes
Attribute |
Default |
Description |
---|---|---|
name |
none |
Specifies the name of this management rule. |
enabled |
true |
(optional) If false, disables this management rule. |
Configures self-management rules, which associate custom self-tuning, self-configuring, and self-healing actions with events in the Communications Server.
The following table describes subelements for the management-rules element.
Table 1–130 management-rules Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a management rule. |
The following table describes attributes for the management-rules element.
Table 1–131 management-rules Attributes
Attribute |
Default |
Description |
---|---|---|
enabled |
true |
(optional) If false, disables all management rules. If true, the enabled attribute of each rule determines whether it is enabled. |
Specifies session manager properties.
The following table describes subelements for the manager-properties element.
Table 1–132 manager-properties Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the manager-properties element.
Table 1–133 manager-properties Attributes
Attribute |
Default |
Description |
---|---|---|
none; state is not preserved across restarts |
(optional) Specifies the absolute or relative path to the directory in which the session state is preserved between application restarts, if preserving the state is possible. A relative path is relative to the temporary directory for this web application. Applicable to the web container only if the persistence-type attribute of the web-container-availability element is memory. |
|
60 |
(optional) Specifies the time between checks for expired sessions. If the persistence-frequency attribute of the web-container-availability element is set to time-based, active sessions are stored at this interval. Set this value lower than the frequency at which session data changes. For example, this value should be as low as possible (1 second) for a hit counter servlet on a frequently accessed web site, or you could lose the last few hits each time you restart the server. |
|
-1 |
(optional) Specifies the maximum number of sessions that can be in cache, or -1 for no limit. After this, an attempt to create a new session causes an IllegalStateException to be thrown. |
|
internal class generator |
(optional) Not implemented. Use the uuid-impl-class property of the web-container-availability or sip-container-availability element instead. |
Specifies an MBean, which implements the javax.management.NotificationListener interface.
The following table describes subelements for the mbean element.
Table 1–134 mbean Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property. Property subelements of the mbean element store the names and values of attributes defined in the MBean implementation class. |
The following table describes attributes for the mbean element.
Table 1–135 mbean Attributes
Configures the message-driven bean (MDB) container.
The following table describes subelements for the mdb-container element.
Table 1–136 mdb-container Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the mdb-container element.
Table 1–137 mdb-container Attributes
Attribute |
Default |
Description |
---|---|---|
10 |
(optional) Specifies the initial and minimum number of beans maintained in the pool. |
|
2 |
(optional) Specifies the number of beans to be removed when the idle-timeout-in-seconds timer expires. A cleaner thread removes any unused instances. Must be 0 or greater and less than max-pool-size . The pool is not resized below the steady-pool-size. |
|
60 |
(optional) Specifies the maximum number of beans that can be created to satisfy client requests. |
|
600 |
(optional) Specifies the maximum time that a bean can remain idle in the pool. After this amount of time, the bean is destroyed. A value of 0 means a bean can remain idle indefinitely. |
The following table describes properties for the mdb-container element.
Table 1–138 mdb-container Properties
Property |
Default |
Description |
---|---|---|
1 |
Specifies the maximum number of RuntimeException occurrences allowed from a message-driven bean’s onMessage() method when container-managed transactions are used. Deprecated. |
Specifies configurations for message security providers.
The following table describes subelements for the message-security-config element.
Table 1–139 message-security-config Subelements
Element |
Required |
Description |
---|---|---|
one or more |
Specifies a configuration for one message security provider. |
The following table describes attributes for the message-security-config element.
Table 1–140 message-security-config Attributes
Attribute |
Default |
Description |
---|---|---|
SOAP |
Specifies the message layer at which authentication is performed. The value must be SOAP or HttpServlet. |
|
none |
(optional) Specifies the server provider that is invoked for any application not bound to a specific server provider. |
|
none |
(optional) Specifies the client provider that is invoked for any application not bound to a specific client provider. |
Controls the level of messages logged by server subsystems to the server log. Allowed values (levels) of each subsystem attribute are, from highest to lowest: FINEST , FINER, FINE, CONFIG, INFO, WARNING, SEVERE, and OFF. Each value logs all messages for all lower values. The default value is INFO, which logs all INFO, SEVERE , and WARNING messages.
The following table describes subelements for the module-log-levels element.
Table 1–141 module-log-levels Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the module-log-levels element. The attribute names are the names of the Communications Server system loggers.
Table 1–142 module-log-levels Attributes
Attribute |
Default |
Description |
---|---|---|
root |
INFO |
(optional) Specifies the default level of messages logged by the entire Communications Server installation. |
server |
INFO |
(optional) Specifies the default level of messages logged by the server instance. |
ejb-container |
INFO |
(optional) Specifies the level of messages logged by the EJB container. |
cmp-container |
INFO |
(optional) Specifies the level of messages logged by the CMP subsystem of the EJB container. |
mdb-container |
INFO |
(optional) Specifies the level of messages logged by the MDB container. |
web-container |
INFO |
(optional) Specifies the level of messages logged by the web container. |
classloader |
INFO |
(optional) Specifies the level of messages logged by the classloader hierarchy. |
configuration |
INFO |
(optional) Specifies the level of messages logged by the configuration subsystem. |
naming |
INFO |
(optional) Specifies the level of messages logged by the naming subsystem. |
security |
INFO |
(optional) Specifies the level of messages logged by the security subsystem. |
jts |
INFO |
(optional) Specifies the level of messages logged by the Java Transaction Service. |
jta |
INFO |
(optional) Specifies the level of messages logged by the Java Transaction API. |
admin |
INFO |
(optional) Specifies the level of messages logged by the Administration Console subsystem. |
deployment |
INFO |
(optional) Specifies the level of messages logged by the deployment subsystem. |
verifier |
INFO |
(optional) Specifies the level of messages logged by the deployment descriptor verifier. |
jaxr |
INFO |
(optional) Specifies the level of messages logged by the XML registry. |
jaxrpc |
INFO |
(optional) Specifies the level of messages logged by the XML RPC module. |
saaj |
INFO |
(optional) Specifies the level of messages logged by the SOAP with Attachments API for Java module. |
corba |
INFO |
(optional) Specifies the level of messages logged by the ORB. |
javamail |
INFO |
(optional) Specifies the level of messages logged by the JavaMail subsystem. |
jms |
INFO |
(optional) Specifies the level of messages logged by the Java Message Service. |
connector |
INFO |
(optional) Specifies the level of messages logged by the connector subsystem. |
jdo |
INFO |
(optional) Specifies the level of messages logged by the Java Data Objects module. |
cmp |
INFO |
(optional) Specifies the level of messages logged by the CMP subsystem. |
util |
INFO |
(optional) Specifies the level of messages logged by the utility subsystem. |
resource-adapter |
INFO |
(optional) Specifies the level of messages logged by the resource adapter subsystem. |
synchronization |
INFO |
(optional) Specifies the level of messages logged by the synchronization subsystem. |
node-agent |
INFO |
(optional) Specifies the level of messages logged by the node agent subsystem. |
self-management |
INFO |
(optional) Specifies the level of messages logged by the self-management (management rules) subsystem. |
group-management-service |
INFO |
(optional) Specifies the level of messages logged by the Group Management Service. |
management-event |
INFO |
(optional) Specifies the level of messages logged by the self-management event subsystem. |
The following table describes properties for the module-log-levels element. The property names are the names of the Communications Server system loggers.
Table 1–143 module-log-levels Properties
Property |
Default |
Description |
---|---|---|
sip |
INFO |
Specifies the level of messages logged by the SIP container. |
clb |
INFO |
Specifies the level of messages logged by the converged load balancer subsystem. |
ar |
INFO |
Specifies the level of messages logged by the application router subsystem. |
ssr |
INFO |
Specifies the level of messages logged by the session state replication subsystem. |
smi |
INFO |
Specifies the level of messages logged by the SIP message inspection subsystem. |
Controls the level of monitoring of server subsystems. Allowed values of each subsystem attribute are LOW, HIGH, and OFF.
The following table describes subelements for the module-monitoring-levels element.
Table 1–144 module-monitoring-levels Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
Attribute |
Default |
Description |
---|---|---|
thread-pool |
OFF |
(optional) Specifies the level of monitoring of the thread pool subsystem. |
orb |
OFF |
(optional) Specifies the level of monitoring of the ORB. |
ejb-container |
OFF |
(optional) Specifies the level of monitoring of the EJB container. |
web-container |
OFF |
(optional) Specifies the level of monitoring of the web container. |
transaction-service |
OFF |
(optional) Specifies the level of monitoring of the transaction service. |
http-service |
OFF |
(optional) Specifies the level of monitoring of the HTTP service. |
jdbc-connection-pool |
OFF |
(optional) Specifies the level of monitoring of the JDBC connection pool subsystem. |
connector-connection-pool |
OFF |
(optional) Specifies the level of monitoring of the connector connection pool subsystem. |
connector-service |
OFF |
(optional) Specifies the level of monitoring of the connector service. |
jms-service |
OFF |
(optional) Specifies the level of monitoring of the JMS service. |
jvm |
OFF |
(optional) Specifies the level of monitoring of the JVM. |
Attribute |
Default |
Description |
---|---|---|
sip-service |
OFF |
Specifies the level of monitoring of the SIP service. |
converged-load-balancer |
OFF |
Specifies the level of monitoring of the converged load balancer subsystem. |
Configures the monitoring service.
The following table describes subelements for the monitoring-service element.
Table 1–147 monitoring-service Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Controls the level of monitoring of server subsystems. |
|
zero or more |
Specifies a property or a variable. |
Defines a node agent, which manages server instances on a host machine.
The following table describes subelements for the node-agent element.
Table 1–148 node-agent Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures a JSR 160/255 compliant remote JMX connector. |
|
zero or one |
Defines a realm for authentication. |
|
only one |
Configures the system logging service. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the node-agent element.
Table 1–149 node-agent Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the node agent name. |
|
none |
Specifies the name of the internal jmx-connector. |
|
true |
(optional) If true, starts all managed server instances when the node agent is started. |
The following table describes properties for the node-agent element.
Table 1–150 node-agent Properties
Property |
Default |
Description |
---|---|---|
default Communications Server JVM options |
Sets options for the server instance synchronization JVM. Setting options that limit memory usage helps prevent OutOfMemory errors when large applications are synchronized or when memory is constrained. For more information, see the Sun GlassFish Communications Server 2.0 Administration Guide. |
Contains node agents.
The following table describes subelements for the node-agents element.
Table 1–151 node-agents Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a node agent, which manages server instances on a host machine. |
Configures the ORB.
To enable SSL for outbound connections, include an ssl-client-config subelement in the parent iiop-service element.
The following table describes subelements for the orb element.
Table 1–152 orb Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the orb element.
Table 1–153 orb Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a comma-separated list of thread-pool-id values defined in thread-pool elements used by the ORB. |
|
1024 |
(optional) GIOPv1.2 messages larger than this number of bytes are fragmented. |
|
1024 |
(optional) The maximum number of incoming connections on all IIOP listeners. Legal values are integers. |
Configures the overload protection service for HTTP and SIP requests.
none
The following table describes attributes for the overload-protection-service element.
Table 1–154 overload-protection-service Attributes
Attribute |
Default |
Description |
---|---|---|
false |
If true, the overload protection manager is enabled and operates according to cpu-overload-protection, memory-overload-protection, and other overload-protection-service attributes. Overload regulation protects the HTTP and SIP containers from too high CPU or memory usage. |
|
false |
If true, CPU overload protection is enabled. Applicable only if enabled is set to true. |
|
false |
If true, memory overload protection is enabled. Applicable only if enabled is set to true. |
|
70 |
Specifies the CPU usage threshold level for SIP initial requests. Allowed values are 0 to 100. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if cpu-overload-protection is set to true. |
|
85 |
Specifies the memory usage threshold level for SIP initial requests. Allowed values are 0 to 100. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if memory-overload-protection is set to true. |
|
90 |
Specifies the CPU usage threshold level for SIP subsequent requests. Allowed values are 0 to 100. Must be set higher than the cpu-ir-threshold value. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if cpu-overload-protection is set to true. |
|
85 |
Specifies the memory usage threshold level for SIP subsequent requests. Allowed values are 0 to 100. Must be set higher than the mem-ir-threshold value. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if memory-overload-protection is set to true. |
|
70 |
Specifies the CPU usage threshold level for HTTP requests. Allowed values are 0 to 100. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if cpu-overload-protection is set to true. |
|
85 |
Specifies the memory usage threshold level for HTTP requests. Allowed values are 0 to 100. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if memory-overload-protection is set to true. |
|
99 |
Specifies the CPU usage threshold level when all messages are dropped. Allowed values are 0 to 100. Applicable only if cpu-overload-protection is set to true. |
|
99 |
Specifies the memory usage threshold level when all messages are dropped. Allowed values are 0 to 100. Applicable only if memory-overload-protection is set to true. |
|
2 |
Specifies the sample rate in seconds for updating threshold levels. Allowed values are 1 to 120 seconds. |
|
5 |
Specifies the number of consecutive samples needed before a threshold is raised. Allowed values are 2 to 20. |
|
10 |
Specifies the interval in seconds between response retries. This is part of the retry-after header in a 503 response. |
|
MEDIAN |
Specifies the activation algorithm for CPU overload protection. Allowed values are MEDIAN and CONSECUTIVE. |
|
CONSECUTIVE |
Specifies the deactivation algorithm for CPU overload protection. Allowed values are MEDIAN and CONSECUTIVE. |
|
MEDIAN |
Specifies the activation algorithm for memory overload protection. Allowed values are MEDIAN and CONSECUTIVE. |
|
CONSECUTIVE |
Specifies the deactivation algorithm for memory overload protection. Allowed values are MEDIAN and CONSECUTIVE. |
|
2 |
Specifies the time in seconds for which a thread is held before being released back to the thread pool. Used in the context of maximum overload for HTTP requests. |
Defines a persistence manager factory resource for container-managed persistence (CMP). Deprecated, and included for backward compatibility only. Use a jdbc-resource element instead.
The following table describes subelements for the persistence-manager-factory-resource element.
Table 1–155 persistence-manager-factory-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the persistence-manager-factory-resource element.
Table 1–156 persistence-manager-factory-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl |
(optional) Deprecated. Do not specify this attribute for the built-in CMP implementation. |
|
none |
Specifies the jdbc-resource from which database connections are obtained. Must be the jndi-name of an existing jdbc-resource. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |
Contains the principal of the servlet, trusted entity, or EJB client.
none - contains data
Configures a profiler for use with the Communications Server. For more information about profilers, see the Sun GlassFish Communications Server 2.0 Developer’s Guide.
The following table describes subelements for the profiler element.
Table 1–157 profiler Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Contains profiler-specific JVM command line options. |
|
zero or more |
Specifies a property or a variable. |
Subelements of a profiler element can occur in any order.
The following table describes attributes for the profiler element.
Table 1–158 profiler Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the profiler. |
|
none |
(optional) Specifies the classpath for the profiler. |
|
none |
(optional) Specifies the native library path for the profiler. |
|
enabled |
true |
(optional) Determines whether the profiler is enabled. |
Specifies a property. A property adds configuration information to its parent element that is one or both of the following:
Optional with respect to the Communications Server
Needed by a system or object that the Communications Server doesn’t have knowledge of, such as an LDAP server or a Java class
For example, an auth-realm element can include property subelements:
<auth-realm name="file" classname="com.sun.enterprise.security.auth.realm.file.FileRealm"> <property name="file" value="domain-dir/config/keyfile"/> <property name="jaas-context" value="fileRealm"/> </auth-realm>
Which properties an auth-realm element uses depends on the value of the auth-realm element’s name attribute. The file realm uses file and jaas-context properties. Other realms use different properties.
admin-object-resource, admin-service, alert-service, appclient-module, audit-module, auth-realm, availability-service, cluster, config, connector-connection-pool, connector-module, connector-resource, converged-lb-config, converged-lb-policy, custom-resource, das-config, diagnostic-service, domain, ejb-container, ejb-container-availability, ejb-module, ejb-timer-service, event, extension-module, external-jndi-resource, filter-config, group-management-service, http-listener, http-service, iiop-listener, j2ee-application, jacc-provider, java-config, jdbc-connection-pool, jdbc-resource, jms-host, jms-service, jmx-connector, lb-config, lifecycle-module, listener-config, load-balancer, log-service, mail-resource, management-rule, manager-properties, mbean, mdb-container, module-log-levels, module-monitoring-levels, monitoring-service, node-agent, orb, persistence-manager-factory-resource, profiler, provider-config, proxy, resource-adapter-config, security-service, server, session-properties, sip-container, sip-container-availability, sip-listener, sip-protocol, sip-service, stack-config, stack-layer, store-properties, transaction-service, trust-handler, virtual-server, web-container, web-container-availability, web-module
The following table describes subelements for the property element.
Table 1–159 property Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
The following table describes attributes for the property element.
Table 1–160 property Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the property or variable. |
|
none |
Specifies the value of the property or variable. |
Specifies a configuration for one message security provider.
Although the request-policy and response-policy subelements are optional, the provider-config element does nothing if they are not specified.
Use property subelements to configure provider-specific properties. Property values are passed to the provider when its initialize method is called.
The following table describes subelements for the provider-config element.
Table 1–161 provider-config Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines the authentication policy requirements of the authentication provider’s request processing. |
|
zero or one |
Defines the authentication policy requirements of the authentication provider’s response processing. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the provider-config element.
Table 1–162 provider-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a unique identifier for this provider-config element. |
|
none |
Specifies whether the provider is a client, server, or client-server authentication provider. |
|
none |
Specifies the Java implementation class of the provider. Client authentication providers must implement the com.sun.enterprise.security.jauth.ClientAuthModule interface. Server authentication providers must implement the com.sun.enterprise.security.jauth.ServerAuthModule interface. Client-server providers must implement both interfaces. |
The following table describes properties for the provider-config element.
Table 1–163 provider-config Properties
Property |
Default |
Description |
---|---|---|
domain-dir/config/wss-server-config-1.0.xml |
Specifies the location of the message security configuration file. To point to a configuration file in the domain-dir/config directory, use the prefix ${com.sun.aas.instanceRoot}/config/, for example: ${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml |
|
false |
If true, enables dumping of server provider debug messages to the server log. |
|
false |
If true, signals the provider runtime to collect the user name and password from the CallbackHandler for each request. If false, the user name and password for wsse:UsernameToken(s) is collected once, during module initialization. This property is only applicable for a ClientAuthModule. |
|
s1as |
Specifies the encryption key used by the provider. The key is identified by its keystore alias. |
|
s1as |
Specifies the signature key used by the provider. The key is identified by its keystore alias. |
Specifies the proxy for converged load balancing. This provides for pass-through of HTTP and SIP requests to remote HTTP and SIP listeners, which are configured using the http-service or sip-service of the remote 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.
The following table describes subelements for the proxy element.
Table 1–164 proxy Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the proxy element.
Table 1–165 proxy Attributes
Attribute |
Default |
Description |
---|---|---|
50 |
Specifies the number of request objects created and pooled by the proxy. |
|
3 |
Specifies the number of retries the proxy attempts with the remote instance when sending of data fails. |
|
1500 |
Specifies in milliseconds how long the proxy waits for data from the client in the socket channel. |
The following table describes properties for the proxy element.
Table 1–166 proxy Properties
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the maximum number of outbound connections to a back-end instance. |
|
none |
Specifies the maximum number of active outbound connections the controller handles. |
|
none |
Specifies the number of LRU connections reclaimed if the high-water-mark limit is reached. |
|
none |
Specifies the timeout for the proxy to read from the server channel once a response is available. |
|
none |
Specifies the proxy back-end socket receive buffer size. |
|
none |
Specifies the proxy back-end socket send buffer size. |
|
none |
Specifies the client socket send read timeout. |
Specifies the registry where web service endpoint artifacts are published.
none
The following table describes attributes for the registry-location element.
Table 1–167 registry-location Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the jndi-name of the connector-resource used as the registry. |
Defines the authentication policy requirements of the authentication provider’s request processing.
none
The following table describes attributes for the request-policy element.
Table 1–168 request-policy Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the type of required authentication, either sender (user name and password) or content (digital signature). |
|
none |
Specifies whether recipient authentication occurs before or after content authentication. Allowed values are before-content and after-content. |
Configures request processing threads.
none
The following table describes attributes for the request-processing element.
Table 1–169 request-processing Attributes
Attribute |
Default |
Description |
---|---|---|
5 (http-service) 10 (sip-service) |
(optional) Specifies the maximum number of request processing threads. |
|
2 (http-service) 10 (sip-service) |
(optional) Specifies the number of request processing threads that are available when the server starts up. |
|
1 |
(optional) Specifies the number of request processing threads added when the number of requests exceeds the initial-thread-count. Set this attribute to a value greater than 1 if thread-count is greater than 10. |
|
60 (http-service) 60 (sip-service) |
(optional) Specifies the time at which the request times out. |
|
8192 |
(optional) Specifies the size of the buffer used by the request processing threads to read the request data. For SIP applications, the optimal value depends on the SIP message header size. |
Defines a connector (resource adapter) configuration. Stores configuration information for the resource adapter JavaBean in property subelements.
The following table describes subelements for the resource-adapter-config element.
Table 1–170 resource-adapter-config Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the resource-adapter-config element.
Table 1–171 resource-adapter-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
(optional) Not used. See resource-adapter-name. |
|
none |
(optional) Specifies the id of a thread-pool element. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
none |
Specifies the name attribute of a deployed connector-module. If the resource adapter is embedded in an application, then it is app_name#rar_name. |
Properties of the resource-adapter-config element are the names of setter methods of the resourceadapter-class element in the ra.xml file, which defines the class name of the resource adapter JavaBean. Any properties defined here override the default values present in ra.xml.
References a resource deployed to the server instance or cluster.
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.
none
The following table describes attributes for the resource-ref element.
Table 1–172 resource-ref Attributes
Attribute |
Default |
Description |
---|---|---|
enabled |
true |
(optional) Determines whether the resource is enabled. |
none |
References the name attribute of a custom-resource, external-jndi-resource, jdbc-resource, mail-resource, persistence-manager-factory-resource, admin-object-resource resource-adapter-config, jdbc-connection-pool, or connector-connection-pool element. |
Contains configured resources, such as database connections, JavaMailTM sessions, and so on.
You must specify a Java Naming and Directory InterfaceTM (JNDI) name for each resource. To avoid collisions with names of other enterprise resources in JNDI, and to avoid portability problems, all names in an Communications Server application should begin with the string java:comp/env.
The following table describes subelements for the resources element.
Table 1–173 resources Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a custom resource. |
|
zero or more |
Defines a resource that resides in an external JNDI repository. |
|
zero or more |
Defines a JDBC (Java Database Connectivity) resource. |
|
zero or more |
Defines a JavaMail resource. |
|
zero or more |
Defines a persistence manager factory resource for CMP. Deprecated. Use a jdbc-resource element instead. |
|
zero or more |
Defines an administered object for an inbound resource adapter. |
|
zero or more |
Defines a connector (resource adapter) resource. |
|
zero or more |
Defines a resource adapter configuration. |
|
zero or more |
Defines the properties that are required for creating a JDBC connection pool. |
|
zero or more |
Defines the properties that are required for creating a connector connection pool. |
Subelements of a resources element can occur in any order.
Defines the authentication policy requirements of the authentication provider’s response processing.
none
The following table describes attributes for the response-policy element.
Table 1–174 response-policy Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the type of required authentication, either sender (user name and password) or content (digital signature). |
|
none |
Specifies whether recipient authentication occurs before or after content authentication. Allowed values are before-content and after-content. |
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. |
Defines a thread pool.
none
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the thread pool ID. |
|
0 |
(optional) Specifies the minimum number of threads in the pool. These are created when the thread pool is instantiated. |
|
200 |
(optional) Specifies the maximum number of threads the pool can contain. |
|
120 |
(optional) Specifies the amount of time after which idle threads are removed from the pool. |
|
1 |
(optional) Specifies the total number of work queues serviced by this thread pool. |
Contains thread pools.
The following table describes subelements for the thread-pools element.
Table 1–219 thread-pools Subelements
Element |
Required |
Description |
---|---|---|
one or more |
Defines a thread pool. |
Configures the Java Transaction Service (JTS).
The following table describes subelements for the transaction-service element.
Table 1–220 transaction-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the transaction-service element.
Table 1–221 transaction-service Attributes
Attribute |
Default |
Description |
---|---|---|
false (developer profile) true (cluster profile) |
(optional) If true, the server instance attempts transaction recovery during startup. |
|
0 |
(optional) Specifies the amount of time after which the transaction is aborted. If set to 0, the transaction never times out. |
|
directory specified by the log-root attribute of the domain element |
(optional) Specifies the parent directory of the transaction log directory instance-name/tx. The directory in which the transaction logs are kept must be writable by the user account under which the server runs. A relative path is relative to the log-root attribute of the domain element. |
|
rollback |
(optional) If the outcome of a distributed transaction cannot be determined because other participants are unreachable, this property determines the outcome. Allowed values are rollback and commit. |
|
600 |
(optional) Determines the retry time in the following scenarios:
|
|
65536 (64 K) |
(optional) Specifies the number of transactions between keypoint operations in the log. Keypoint operations reduce the size of the transaction log file by compressing it. A larger value for this attribute results in a larger transaction log file, but fewer keypoint operations and potentially better performance. A smaller value results in smaller log files, but slightly reduced performance due to the greater frequency of keypoint operations. |
The following table describes properties for the transaction-service element.
Table 1–222 transaction-service Properties
Property |
Default |
Description |
---|---|---|
true |
If true, the Oracle XA Resource workaround is used in transaction recovery. |
|
false |
If true, disables transaction logging, which might improve performance. If the automatic-recovery attribute is set to true , this property is ignored. |
|
specific to the XAResource used |
Changes the XAResource timeout. In some cases, the XAResource default timeout can cause transactions to be aborted, so it is desirable to change it. |
|
none if this property is absent, 60 if this property is present but has no value |
Specifies the interval, in seconds, at which an asynchronous thread checks for pending transactions and completes them. |
|
true |
If true, enables last agent optimization, which improves the throughput of transactions. If one non-XA resource is used with XA resources in the same transaction, the non XA resource is the last agent. |
|
false |
If true, cluster-wide delegated recovery is enabled. You must also facilitate storing of transaction logs in a shared file system in one of these ways:
<server config-ref="server-config" name="server"> <system-property name="TX-LOG-DIR" value="/net/tulsa/nodeagents/na/instance1/logs"/> </server> |
|
60 |
Specifies the wait time, in seconds, after which an instance starts the recovery for a dead instance. |
|
none |
Specifies the JNDI name of the JDBC resource for the database to which transactions are logged. For more information, see Chapter 16, Using the Transaction Service, in Sun GlassFish Communications Server 2.0 Developer’s Guide. |
|
host name on which the Communications Server runs |
Specifies the host name that the transaction service uses to identify transactions being managed by the installed Communications Server. This can sometimes be useful for recovering transactions from the log file that was created on a different host running the Communications Server. This should also be used when the Communications Server is installed as part of Sun Cluster HA. |
Configures an eXtensible Stylesheet Language Transformation (XSLT) rule, which transforms a web service message.
The following table describes subelements for the transformation-rule element.
Table 1–223 transformation-rule Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
The following table describes attributes for the transformation-rule element.
Table 1–224 transformation-rule Attributes
Specifies intermediate hosts and domains according to RFC 3325.
The following table describes subelements for the trusted-entity element.
Table 1–225 trusted-entity Subelements
Element |
Required |
Description |
---|---|---|
only one |
Identifies the trusted host on the network using an IP address. |
|
zero or one |
Identifies the trusted host on the network using domain names. |
|
zero or one |
Identifies the principal of the trusted entity. |
The following table describes attributes for the trusted-entity element.
Table 1–226 trusted-entity Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a unique identifier for the trusted-entity element. |
|
none |
(optional) When set to intermediate, specifies configuration information for incoming messages. When set to destination, specifies configuration information for outgoing messages. When not set, specifies configuration information for both incoming and outgoing messages. |
Specifies a custom trust handler according to RFC 3325. This provides a custom implementation to determine trust and to convert user identity to a format recognized by the system.
The following table describes subelements for the trust-handler element.
Table 1–227 trust-handler Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the trust-handler element.
Table 1–228 trust-handler Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the class that implements com.sun.enterprise.security.auth.TrustHandler and com.sun.enterprise.security.auth.PrincipalMapper. |
Contains the group to which the principal belongs.
none - contains data
Defines a virtual server. A virtual server, also called a virtual host, is a virtual web server that serves content targeted for a specific URL. Multiple virtual servers can serve content using the same or different host names, port numbers, or IP addresses. The HTTP service can direct incoming web requests to different virtual servers based on the URL.
When the Communications Server is first installed, a default virtual server is created. (You can also assign a default virtual server to each new http-listener you create.)
Virtual servers are not the same thing as server instances. Each server instance is a completely separate server that contains one or more virtual servers.
Before the Communications Server can process a request, it must accept the request via a listener, then direct the request to the correct virtual server. The virtual server is determined as follows:
If the listener is configured to only a default virtual server, that virtual server is selected.
If the listener has more than one virtual server configured to it, the request Host header is matched to the hosts attribute of a virtual server. If no Host header is present or no hosts attribute matches, the default virtual server for the listener is selected.
If a virtual server is configured to an SSL listener, its hosts attribute is checked against the subject pattern of the certificate at server startup, and a warning is generated and written to the server log if they don’t match.
The following table describes subelements for the virtual-server element.
Table 1–229 virtual-server Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines an access log file. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the virtual-server element.
Table 1–230 virtual-server Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Virtual server ID. This is a unique ID that allows lookup of a specific virtual server. A virtual server ID cannot begin with a number. |
|
none |
(optional) In a comma-separated list, references id attributes of http-listener elements that specify the connection(s) the virtual server uses. Required only for a virtual-server that is not referenced by the default-virtual-server attribute of an http-listener. |
|
none |
(optional) References the name attribute of the default web-module for this virtual server, which responds to requests that cannot be resolved to other web modules deployed to this virtual server (see the application-ref element). |
|
none |
A comma-separated list of values, each of which selects the current virtual server when included in the Host request header. Two or more virtual-server elements that reference or are referenced by the same http-listener cannot have any hosts values in common. |
|
on |
(optional) Determines whether a virtual-server is active (on) or inactive (off, disabled). The default is on (active). When inactive, a virtual-server does not service requests. If a virtual-server is disabled, only the global server administrator can turn it on. |
|
none |
(optional) Specifies the document root for this virtual server. |
|
server.log in the directory specified by the log-root attribute of the domain element |
(optional) Writes this virtual server’s log messages to a log file separate from the server log. The file and directory in which the virtual server log is kept must be writable by the user account under which the server runs. See the log-service description for details about logs. |
The following table describes properties for the virtual-server element.
Table 1–231 virtual-server Properties
Property |
Default |
Description |
|
---|---|---|---|
false (developer and cluster profiles) |
If true, single sign-on is enabled for web applications on this virtual server that are configured for the same realm. If false, single sign-on is disabled for this virtual server, and users must authenticate separately to every application on the virtual server. This setting overrides the sso-enabled property setting of the http-service element. |
||
300 |
Specifies the time after which a user’s single sign-on record becomes eligible for purging if no client activity is received. Since single sign-on applies across several applications on the same virtual server, access to any of the applications keeps the single sign-on record active. Higher values provide longer single sign-on persistence for the users at the expense of more memory use on the server. |
||
60 |
Specifies the interval between purges of expired single sign-on records. |
||
none |
Specifies a comma-separated list of Cache-Control response directives. For a list of valid directives, see section 14.9 of the document at http://www.ietf.org/rfc/rfc2616.txt. |
||
false (developer and cluster profiles) |
If true, enables access logging for this virtual server only. If false, disables access logging for this virtual server only. |
||
32768 |
Specifies the size, in bytes, of the buffer where access log calls are stored. If the value is less than 5120, a warning message is issued, and the value is set to 5120. To set this property for all virtual servers, set it as a property of the parent http-service element. |
||
300 |
Specifies the number of seconds before the log is written to the disk. The access log is written when the buffer is full or when the interval expires. If the value is 0, the buffer is always written even if it is not full. This means that each time the server is accessed, the log message is stored directly to the file. To set this property for all virtual servers, set it as a property of the parent http-service element. |
||
none |
Specifies a comma-separated list of regular expression patterns that the remote client's IP address is compared to. If this property is specified, the remote address must match for this request to be accepted. If this property is not specified, all requests are accepted unless the remote address matches a denyRemoteAddress pattern. |
||
none |
Specifies a comma-separated list of regular expression patterns that the remote client's IP address is compared to. If this property is specified, the remote address must not match for this request to be accepted. If this property is not specified, request acceptance is governed solely by the allowRemoteAddress property. |
||
none |
Specifies a comma-separated list of regular expression patterns that the remote client's hostname (as returned by [java.net.]Socket.getInetAddress().getHostName()) is compared to. If this property is specified, the remote hostname must match for this request to be accepted. If this property is not specified, all requests are accepted unless the remote hostname matches a denyRemoteHost pattern. |
||
none |
Specifies a comma-separated list of regular expression patterns that the remote client's hostname (as returned by [java.net.]Socket.getInetAddress().getHostName()) is compared to. If this property is specified, the remote hostname must not match for this request to be accepted. If this property is not specified, request acceptance is governed solely by the allowRemoteHost property. |
||
none |
Specifies the name attribute of an auth-realm element, which overrides the server instance's default realm for stand-alone web applications deployed to this virtual server. A realm defined in a stand-alone web application's web.xml file overrides the virtual server's realm. |
||
true |
Set this property to false to ensure that for all web applications on this virtual server file downloads using SSL work properly in Internet Explorer. You can set this property for a specific web application. For details, see sun-web-app in Sun GlassFish Communications Server 2.0 Application Deployment Guide. |
||
none |
Specifies an alternate document root (docroot), where n is a positive integer that allows specification of more than one. Alternate docroots allow web applications to serve requests for certain resources from outside their own docroot, based on whether those requests match one (or more) of the URI patterns of the web application's alternate docroots. If a request matches an alternate docroot's URI pattern, it is mapped to the alternate docroot by appending the request URI (minus the web application's context root) to the alternate docroot's physical location (directory). If a request matches multiple URI patterns, the alternate docroot is determined according to the following precedence order:
For example, the following properties specify three alternate docroots. The URI pattern of the first alternate docroot uses an exact match, whereas the URI patterns of the second and third alternate docroots use extension and longest path prefix matches, respectively. <property name="alternatedocroot_1" value="from=/my.jpg dir=/srv/images/jpg"/> <property name="alternatedocroot_2" value="from=*.jpg dir=/srv/images/jpg"/> <property name="alternatedocroot_3" value="from=/jpg/* dir=/src/images"/> The value of each alternate docroot has two components: The first component, from, specifies the alternate docroot's URI pattern, and the second component, dir, specifies the alternate docroot's physical location (directory). Spaces are allowed in the dir component. You can set this property for a specific web application. For details, see sun-web-app in Sun GlassFish Communications Server 2.0 Application Deployment Guide. |
||
none |
Specifies the location, relative to domain-dir, of the context.xml file for this virtual server, if one is used. For more information about the context.xml file, see The Context Container. |
||
false |
If true, resources that are symbolic links in web applications on this virtual server are served. The value of this property in the sun-web.xml file takes precedence if defined. For details, see sun-web-app in Sun GlassFish Communications Server 2.0 Application Deployment Guide. ![]() Setting this property to true on Windows systems exposes JSP source code. |
||
none |
Specifies custom error page mappings for the virtual server, which are inherited by all web applications deployed on the virtual server. A web application can override these custom error page mappings in its web.xml deployment descriptor. The value of each send-error_n property has three components, which may be specified in any order: The first component, code, specifies the three-digit HTTP response status code for which the custom error page should be returned in the response. The second component, path, specifies the absolute or relative file system path of the custom error page. A relative file system path is interpreted as relative to the domain-dir/config directory. The third component, reason, is optional and specifies the text of the reason string (such as Unauthorized or Forbidden) to be returned. For example: <property name="send-error_1" value="code=401 path=/myhost/401.html reason=MY-401-REASON"/> This example property definition causes the contents of /myhost/401.html to be returned with 401 responses, along with this response line:
|
||
none |
Specifies that a request for an old URL is treated as a request for a new URL. These properties are inherited by all web applications deployed on the virtual server. The value of each redirect_n property has two components, which may be specified in any order: The first component, from, specifies the prefix of the requested URI to match. The second component, url-prefix, specifies the new URL prefix to return to the client. The from prefix is simply replaced by this URL prefix. For example: <property name="redirect_1" value="from=/dummy url-prefix=http://etude"/> |
Configures the web container.
The following table describes subelements for the web-container element.
Table 1–232 web-container Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies session configuration information for the web container. |
|
zero or more |
Specifies a property or a variable. |
The following table describes properties for the web-container element.
Table 1–233 web-container Properties
Property |
Default |
Description |
---|---|---|
20 |
Prevents recursive include or forward statements from creating an infinite loop by setting a maximum nested dispatch level. If this level is exceeded, the following message is written to the server log: Exceeded maximum depth for nested request dispatches |
Enables availability in the web container, including HTTP session persistence.
If availability is disabled, there is no high availability for HTTP session persistence. In other words, persistence-type=memory.
If availability is enabled but no other web-container-availability attributes are specified, the default session persistence configuration is as follows:
persistence-type=replicated persistence-frequency=time-based persistence-scope=session
The default configuration for all applications can be changed by setting the various web-container-availability attributes and properties.
You can override the various web-container-availability attributes and properties for a specific application in sun-web.xml. For details, see the Sun GlassFish Communications Server 2.0 Developer’s Guide.
For additional replicated session persistence properties you can set, see availability-service.
The following table describes subelements for the web-container-availability element.
Table 1–234 web-container-availability Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the web-container-availability element.
Table 1–235 web-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 web applications 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 web applications that have availability enabled. Allowed values are memory (no persistence), file (the file system) and replicated (other servers). If set to memory, the manager-properties element’s session-file-name attribute specifies the file system location where the HTTP session state is stored if the server instance is gracefully shut down. This is useful for internal testing but is not supported for production environments. If set to file, the store-properties element’s directory attribute specifies the file system location where the HTTP session state is stored. Persisting to the file system is useful for internal testing but is not supported for production environments. |
|
web-method |
(optional) Specifies how often the session state is stored. Applicable only if the persistence-type is replicated. Allowed values are as follows:
|
|
session |
(optional) Specifies how much of the session state is stored. Applicable only if the persistence-type is replicated. Allowed values are as follows:
|
|
false |
(optional) If true, the single sign-on state is highly available. To enable single sign-on, use the sso-enabled property of the virtual-server element. |
If the persistence-scope attribute is set to modified-attribute , your web application must follow these guidelines:
Call setAttribute() every time the session state is modified.
Make sure there are no cross-references between attributes. The object graph under each distinct attribute key is serialized and stored separately. If there are any object cross references between the objects under each separate key, they are not serialized and deserialized correctly.
Distribute the session state across multiple attributes, or at least between a read-only attribute and a modifiable attribute.
The following table describes properties for the web-container-availability element.
Table 1–236 web-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 HTTP session data. |
Specifies a deployed web module.
The following table describes subelements for the web-module element.
Table 1–237 web-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Configures a web service endpoint. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the web-module element.
Table 1–238 web-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the web module. |
|
none |
The context root at which the web module is deployed. The context root can be the empty string or just /. The context root can start with the / character, but doesn’t have to. For load balancing to work, web module context roots must be unique within a cluster. See the Sun GlassFish Communications Server 2.0 High Availability Administration Guide for more information about load balancing. Note – 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. |
|
none |
A fully qualified or relative path to the directory to which the contents of the .war file have been extracted. If relative, it is relative to the following directory: domain-dir/applications/j2ee-modules/ |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether the web module is enabled. |
none |
(optional) Specifies an absolute or relative path to libraries specific to this module or application. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. To include more than one path, use a system-specific separator, such as a colon for Solaris or a semicolon for Windows. The libraries are made available to the application in the order in which they are specified. |
|
false |
(optional) Specifies whether availability is enabled in this web application for HTTP session persistence (and potentially passivation). Availability must also be enabled for the application or stand-alone web module during deployment. For more information about availability, see availability-service. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
Configures a web service endpoint, which can be a JAX-RPC/JAXWS 2.0 or JSR-109 web service.
ejb-module, j2ee-application, web-module
The following table describes subelements for the web-service-endpoint element.
Table 1–239 web-service-endpoint Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies the registry where web service endpoint artifacts are published. |
|
zero or more |
Configures an eXtensible Stylesheet Language Transformation (XSLT) rule. |
The following table describes attributes for the web-service-endpoint element.
Table 1–240 web-service-endpoint Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The fully qualified name of the web service. For a web service endpoint within an application, the format is as follows: module-name#endpoint-name For example: jaxrpc-simple.war#HelloIF For a web service endpoint that is a stand-alone module, the name is just the endpoint-name. |
|
OFF |
(optional) Specifies the monitoring level for this web service. For information about monitoring levels, see module-monitoring-levels. |
|
25 |
(optional) Specifies the maximum number of monitoring records stored for this endpoint. |
|
false |
(optional) Determines whether the visibility of this endpoint as a Java Business Integration service is enabled or disabled. |