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

Document Information

Preface

1.  Overview of GlassFish Server Administration

Default Settings and Locations

Configuration Tasks

Administration Tools

Instructions for Administering GlassFish Server

Part I Runtime Administration

2.  General Administration

3.  Administering Domains

About Administering Domains

GlassFish Server Instances

Domains for Administering GlassFish Server

Domain Administration Server (DAS)

Creating, Logging In To, and Deleting a Domain

To Create a Domain

To Create a Domain From a Custom Template

To List Domains

To Log In to a Domain

To Delete a Domain

Starting and Stopping a Domain

To Start a Domain

To Stop a Domain

To Restart a Domain

Configuring a DAS or a GlassFish Server Instance for Automatic Restart

To Configure a DAS or an Instance for Automatic Restart on Windows

To Configure a DAS or an Instance for Automatic Restart on Linux

To Configure a DAS or an Instance for Automatic Restart on Oracle Solaris

To Prevent Service Shutdown When a User Logs Out on Windows

Suspending and Resuming a Domain

To Suspend a Domain

To Resume a Domain

Setting Up Automatic Backups of a Domain

To Create a Backup Configuration

To List Backup Configurations

To Enable a Backup Configuration

To Disable a Backup Configuration

To Delete a Backup Configuration

To Create a Schedule

To List Schedules

To Delete a Schedule

Backing Up and Restoring a Domain

To Back Up a Domain

To Restore a Domain

To List Domain Backups

Re-Creating the Domain Administration Server (DAS)

To Migrate the DAS

Additional Domain Tasks

To Display Domain Uptime

To Switch a Domain to Another Supported Java Version

To Change the Administration Port of a Domain

4.  Administering the Virtual Machine for the Java Platform

5.  Administering Thread Pools

6.  Administering Web Applications

7.  Administering the Logging Service

8.  Administering the Monitoring Service

9.  Writing and Running JavaScript Clients to Monitor GlassFish Server

10.  Administering Life Cycle Modules

11.  Extending and Updating GlassFish Server

Part II Resources and Services Administration

12.  Administering Database Connectivity

13.  Administering EIS Connectivity

14.  Administering Internet Connectivity

15.  Administering the Object Request Broker (ORB)

16.  Administering the JavaMail Service

17.  Administering the Java Message Service (JMS)

18.  Administering the Java Naming and Directory Interface (JNDI) Service

19.  Administering Transactions

Part III Appendixes

A.  Subcommands for the asadmin Utility

Index

Suspending and Resuming a Domain

The following topics are addressed here:

To Suspend a Domain

Use the suspend-domain subcommand in remote mode to suspend a specified domain.

Suspending a domain causes the domain administration server (DAS) to enter a state where it will not accept any asadmin, Administration Console, or REST API command that might alter the configuration or content of the domain. However, because the DAS is still running, commands that do not change the configuration or content of the domain are accepted and performed. For example, asadmin list and get commands are available, and the Administration Console is available with view-only access.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Suspend the domain by using the suspend-domain(1) subcommand:
    asadmin> suspend-domain --timeout seconds --message display-message
    --timeout

    Specifies a time in seconds to wait for certain running operations to complete before suspending the domain. If any such running operation does not complete in this time, the suspend-domain subcommand fails. The default time is 30 seconds.

    --message

    An optional message that is displayed to administrators who try to perform operations that would be blocked because the domain is suspended. If this option is not used, administrators are only informed that the domain has been suspended and when it was suspended.

Example 3-14 Suspending the Default Domain

This example suspends the default domain, domain1, using the default timeout of 30 seconds and providing an informative message about the suspension.

asadmin> suspend-domain --message "Manual backup in progress"
The domain was successfully suspended on Sun, 15 Jan 2011 08:30:22 PST.
Command suspend-domain executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help suspend-domain at the command line.

To Resume a Domain

Use the resume-domain subcommand in remote mode to resume a specified domain.

Resuming a domain that is suspended causes the domain administration server (DAS) to return to a fully operational state where it will accept and perform all asadmin, Administration Console, and REST API commands.

Example 3-15 Resuming the Default Domain

This example resumes the default domain, domain1.

asadmin> resume-domain
The domain is resumed. (Sun, 15 Jan 2011 08:32:17 PST)
Command resume-domain executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help resume-domain at the command line.