You can use the following asadmin commands to deploy or undeploy web or EJB modules on local servers.
deploy — Deploys a web or EJB module. If the module is already deployed, you can force redeployment by setting the --force option to true. You can also deploy a module in an expanded directory structure. See Directory Deployment.
redeploy — Redeploys a web or EJB module that is already deployed. Whenever a redeployment is done, the sessions at that transit time become invalid unless you use the keepSessions=true property of the asadmin redeploy command.
For details, see the Sun GlassFish Enterprise Server v3 Prelude Reference Manual.