GlassFish 4.0
Quickguide: Start server, stop, deploy applications [HOW-TO]
@ElZakaria
Conventions

 Following slides describes paths and filenames usually used in
books and tutorials about Glassfish Server.
as-install
[Windows]

Represents the base installation directory for GlassFish Server.
as-install-parent

Represents the parent of the base installation directory for
GlassFish Server.
domain-root-dir
Represents the directory in which a domain is created by
default.
domain-dir
Represents the directory in which a domain's configuration
is stored.
Default
Administration
Values
Starting a
domain
[Only one
domain
present]
Need to add which domain in case of additional existing domain
in the domain-root-dir
Stopping a
domain
Check if the domain is running:
Deploy an app

 Download the hello.war sample:
 http://glassfish.java.net/downloads/quickstart/hello.war
 Domain should be started first ( asadmin start-domain )

Deploy an app

Or through the adminsitration Interface
Check
deployed
apps
Undeploy
an app

Notice hello without the .war extension!
Deploying
automatically

 Copy the war file into domain-dir/auto-deploy , Done!
Undeploying
automatically

 Through the command line: del hello.war , Done!

Glassfish 4 quick guide