Skip Navigation Links | |
Exit Print View | |
Oracle GlassFish Server 3.1-3.1.1 High Availability Administration Guide |
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 an Individual Instance Centrally
To Stop an Individual Instance Centrally
To Restart an Individual Instance Centrally
Administering GlassFish Server Instances 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
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
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.
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.
This enables automatic timer migration for failed server instances in the cluster.
For instructions on enabling delegated transaction recovery, see Chapter 19, Administering Transactions, in Oracle GlassFish Server 3.1 Administration Guide.
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:
If the source instance is part of a cluster, then the target instance must also be part of that same cluster.
It is not possible to migrate timers from a standalone instance to a clustered instance, or from one cluster to another cluster.
It is not possible to migrate timers from one standalone instance to another standalone instance.
All EJB timers defined for a given instance are migrated with this procedure. It is not possible to migrate individual timers.
Before You Begin
The server instance from which the EJB timers are to be migrated should not be active during the migration process.
asadmin> list-instances source-instance
asadmin> stop-instance source-instance
Note - The target instance to which the timers will be migrated should be running.
asadmin> list-timers source-cluster
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)