Oracle GlassFish Server 3.0.1 Application Deployment Guide

ProcedureTo Enable an Application or Module

By default, a deployed application or module is enabled, which means that it is runnable and can be accessed by clients if it has been deployed to an accessible server instance. Use the enable subcommand in remote mode to enable an application or module that has been disabled.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Enable the application or module by using the enable(1) subcommand.

    If the component has not been deployed, an error message is displayed. If the component is already enabled, it is re-enabled. To see the status of deployed components, use the show-component-status(1) subcommand.

    Information about the options and properties of the subcommand is included in this help page.

Example 2–12 Enabling an Application

This example enables the sampleApp application.

asadmin> enable sampleApp
Command enable executed successfully.

See Also

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