Configures the availability service. Enables high-availability features, such as HTTP session and stateful session bean state persistence to the Sun Java System high-availability database (HADB).
Availability can be enabled or disabled at the following levels:
The server instance (attribute of availability-service). Default is true (enabled).
The EJB or web container (attribute of ejb-container-availability or web-container-availability). Default is true (enabled).
The application (attribute of j2ee-application). Default is false (disabled).
The stand-alone EJB or web module (attribute of ejb-module or web-module). Default is false (disabled).
The stateful session bean. Default is false (disabled). See the Sun Java System Application Server Enterprise Edition 8.2 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–18 availability-service Subelements
Element |
Required |
Description |
---|---|---|
only one |
Enables availability in the web container. |
|
only one |
Enables availability in the EJB container. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the availability-service element.
Table 1–19 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. |
|
jdbc/hastore |
(optional) Specifies the jndi-name of the jdbc-resource used for connections to the HADB for session persistence. For more information about setting up a connection pool and JDBC resource for the HADB, see the description of the configure-ha-cluster command in the Sun Java System Application Server Enterprise Edition 8.2 Reference Manual. |