Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Configure shutdown classes


To configure a Java class to run when a server shuts down:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. In the Administration Console, expand Environment and select Startup and Shutdown Classes.
  3. On the Startup and Shutdown Classes page, click New.
  4. On the Configure a New Startup or Shutdown Class: Class Type page, choose Shutdown Class. Then click Next.
  5. On the Shutdown Class Properties page, enter a name that you will use to identify this configuration of your Java class.

    You can create multiple named configurations for any given class. After you have created a class configuration, you cannot change its name. Instead, delete the configuration and create a new one with a new name.

  6. In the Class Name field, enter the fully qualified name of the shutdown class.

    For example:

    mycompany.myclasses.shutdownclass

  7. On the Select Targets page, select one or more servers or deploy the class to all servers in a cluster. Then click Finish.

    For information about changing the default settings, refer to Configuration Options.

  8. To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
    Not all changes take effect immediately—some require a restart (see Use the Change Center).

After you finish

  1. Add the class to the server's classpath. See Add startup and shutdown classes to the classpath.
  2. Restart each server instance on which you have deployed the class.

Back to Top