You can disable a deployed application or module without removing it from the server. Disabling an application makes it inaccessible to clients.
To disable an application or module using the asadmin disable command, see the Sun GlassFish Enterprise Server 2.1 Reference Manual.
Open the Applications component.
Go to the page for the type of application or module.
For example, for a web application, go to the Web Applications page.
Click on the box to the left of the name of each application or module you wish to disable.
Click on the Disable button.
For details, click the Help button in the Admin Console.