Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Reference

- Previous: auth-realm
- Next: B

## availability-service

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:

1. The server instance (attribute of `availability-service`). Default is `true` (enabled).

2. The EJB or web container (attribute of ejb-container-availability or web-container-availability). Default is `true` (enabled).

3. The application (attribute of j2ee-application). Default is `false` (disabled).

4. The stand-alone EJB or web module (attribute of ejb-module or web-module). Default is `false` (disabled).

5. The stateful session bean. Default is `false` (disabled). See the Sun Java System Application Server Enterprise Edition 8.1 2005Q2 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.

### Superelements

config

### Subelements

The following table describes subelements for the `availability-service` element.

Table 1–18 `availability-service` Subelements

Element | Required | Description
--- | --- | ---
web-container-availability | only one | Enables availability in the web container.
ejb-container-availability | only one | Enables availability in the EJB container.
property | zero or more | Specifies a property or a variable.

### Attributes

The following table describes attributes for the `availability-service` element.

Table 1–19 `availability-service` Attributes

Attribute | Default | Description
--- | --- | ---
`availability-enabled` | `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.
`store-pool-name` | `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.1 2005Q2 Reference Manual.

- Previous: auth-realm
- Next: B

- © 2010, Oracle Corporation and/or its affiliates