All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-webcontaineravailability.html Maven / Gradle / Ivy

The newest version!



To Configure Availability Settings for the Web Container

  1. In the navigation tree, expand the Configuration node.
  2. Select the configuration that you are changing.
  3. Under the configuration's node, select the Availability Service node.

    The Availability Service page opens.

  4. On the Availability Service page, click the Web Container Availability tab.

    The Web Container Availability page opens.

  5. In the Availability Service field, check the Enabled box to enable availability for the web container.

    To disable availability, remove the check from the Availability Service Enabled box.

  6. From the Persistence Type drop-down list, select the persistence mechanism.
    • If Availability Service Enabled is not checked, select one of the following:
      • memory for no session persistence

      • file for session persistence based on the file system that is not highly available

    • If Availability Service Enabled is checked, select replicated for session persistence based on cluster failover that is highly available.
  7. From the Persistence Frequency drop-down list, select the frequency at which the HTTP session is stored:
    • web-method — The session state is stored at the end of each web request prior to sending a response back to the client. This mode provides the best guarantee that the session state is fully updated in case of failure. This is the default.

    Persistence Frequency is only applicable if the Persistence Type is replicated.

  8. From the Persistence Scope drop-down list, select the scope of HTTP session changes required for storage to occur:
    • session — The entire session state is stored every time. This mode provides the best guarantee that your session data is correctly stored for any distributable web application.

    • modified-session — The entire session state is stored if it has been modified. A session is considered to have been modified if HttpSession.setAttribute() or HttpSession.removeAttribute() was called. You must guarantee that setAttribute() is called every time an attribute is changed. This is not a Java EE specification requirement, but it is required for this mode to work properly.

    • modified-attribute — Only modified session attributes are stored. For this mode to work properly, you 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.

    Persistence Scope is only applicable if the Persistence Type is replicated.

  9. In the Single-Sign-On State field, check the Enabled box to make the single sign-on state available for failover.

    To make the single sign-on state unavailable for failover, remove the check from the Single-Sign-On State Enabled box.

  10. To restore the default values of all the settings, click the Load Defaults button.
  11. (Optional) In the Additional Properties section, specify additional properties.

    The GlassFish Server does not define any additional properties for web container availability.

    • To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.
    • To modify a property, edit that property's Value field.
    • To delete a property, select the checkbox to the left of the Name field of the property that you are deleting, then click the Delete Properties button.
  12. Click Save.

See Also

Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy