Dynamic reloading enables you to change the code or deployment descriptors of an application or module without needing to perform an explicit redeployment. Instead, you can copy the changed class files or descriptors into the deployment directory for the application or module. The server checks for changes periodically and automatically redeploys the changes if the timestamp of the .reload file in the root directory for the application or module has changed.
Dynamic reloading is enabled by default, and is available only on the default server instance.
Create an empty file named .reload at the root of the deployed application or module.
Deployment directories might change between Enterprise Server releases.
Update the timestamp of the .reload file to load the changes.
In UNIX: touch .reload
Another method for updating an application or module is to use the sun-appserv-update task with the Enterprise Server Ant tasks. See Chapter 3, Using Ant with Enterprise Server, in Sun GlassFish Enterprise Server v3 Application Development Guide.