To Deploy an Application or Module Automatically

Note –

This task is best suited for use in a development environment.

Automatic deployment involves copying an archive file into a
special autodeploy directory where the archive is automatically deployed
by GlassFish Server at predefined intervals. This method is useful in
a development environment because it allows new code to be tested
quickly. Automatic deployment is enabled by default.

(Optional) Use the set(1) subcommand to adjust the autodeployment interval.

This sets the interval at which applications and modules
are checked for code changes and dynamically reloaded. The default
is 2.