JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1-3.1.1 High Availability Administration Guide
search filter icon
search icon

Document Information

Preface

1.  High Availability in GlassFish Server

2.  Setting Up SSH for Centralized Administration

3.  Administering GlassFish Server Nodes

4.  Administering GlassFish Server Clusters

5.  Administering GlassFish Server Instances

Types of GlassFish Server Instances

Administering GlassFish Server Instances Centrally

To Create an Instance Centrally

To List All Instances in a Domain

To Delete an Instance Centrally

To Start a Cluster

To Stop a Cluster

To Start an Individual Instance Centrally

To Stop an Individual Instance Centrally

To Restart an Individual Instance Centrally

Administering GlassFish Server Instances Locally

To Create an Instance Locally

To Delete an Instance Locally

To Start an Individual Instance Locally

To Stop an Individual Instance Locally

To Restart an Individual Instance Locally

Resynchronizing GlassFish Server Instances and the DAS

Default Synchronization for Files and Directories

To Resynchronize an Instance and the DAS Online

To Resynchronize Library Files

To Resynchronize Custom Configuration Files for an Instance

To Resynchronize Users' Changes to Files

To Resynchronize Additional Configuration Files

To Prevent Deletion of Application-Generated Files

To Resynchronize an Instance and the DAS Offline

Migrating EJB Timers

To Enable Automatic EJB Timer Migration for Failed Clustered Instances

To Migrate EJB Timers Manually

6.  Administering Named Configurations

7.  Configuring Web Servers for HTTP Load Balancing

8.  Configuring HTTP Load Balancing

9.  Upgrading Applications Without Loss of Availability

10.  Configuring High Availability Session Persistence and Failover

11.  Configuring Java Message Service High Availability

12.  RMI-IIOP Load Balancing and Failover

Index

Migrating EJB Timers

If a GlassFish Server server instance stops or fails abnormally, it may be desirable to migrate the EJB timers defined for that stopped server instance to another running server instance.

Automatic timer migration is enabled by default for clustered server instances that are stopped normally. Automatic timer migration can also be enabled to handle clustered server instance crashes. In addition, timers can be migrated manually for stopped or crashed server instances.

To Enable Automatic EJB Timer Migration for Failed Clustered Instances

Automatic migration of EJB timers is enabled by default for clustered server instances that are stopped normally. If the Group Management Service (GMS) is enabled and a clustered instance is stopped normally, no further action is required for timer migration to occur. The procedure in this section is only necessary if you want to enable automatic timer migration for clustered server instances that have stopped abnormally.


Note - If the GMS is enabled, the default automatic timer migration cannot be disabled. To disable automatic timer migration, you must first disable the GMS. For information about the GMS, see Group Management Service.


Before You Begin

Automatic EJB timer migration can only be configured for clustered server instances. Automatic timer migration is not possible for standalone server instances.

To Migrate EJB Timers Manually

EJB timers can be migrated manually from a stopped source instance to a specified target instance in the same cluster if GMS notification is not enabled. If no target instance is specified, the DAS will attempt to find a suitable server instance. A migration notification will then be sent to the selected target server instance.

Note the following restrictions:

Before You Begin

The server instance from which the EJB timers are to be migrated should not be active during the migration process.

  1. Verify that the source clustered server instance from which the EJB timers are to be migrated is not currently running.
    asadmin> list-instances source-instance
  2. Stop the instance from which the timers are to be migrated, if that instance is still running.
    asadmin> stop-instance source-instance

    Note - The target instance to which the timers will be migrated should be running.


  3. (Optional) List the currently defined EJB timers on the source instance, if desired.
    asadmin> list-timers source-cluster
  4. Migrate the timers from the stopped source instance to the target instance.
    asadmin> migrate-timers --target target-instance source-instance

Example 5-20 Migrating an EJB Timer

The following example show how to migrate timers from a clustered source instance named football to a clustered target instance named soccer.

asadmin> migrate-timers --target soccer football

See Also

list-timers(1), migrate-timers(1), list-instances(1), stop-instance(1)