You can disable a deployed module without removing it from the server. Disabling a module makes it inaccessible to clients.
To disable a module using the asadmin disable command, see the Sun GlassFish Enterprise Server v3 Prelude Reference Manual.
Open the Applications component.
Go to the page for the type of 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 module you wish to disable.
Click on the Disable button.
For details, click the Help button in the Administration Console.