Date post: | 05-Jun-2015 |
Category: |
Education |
Upload: | zakaria-bouazza |
View: | 686 times |
Download: | 4 times |
GlassFish 4.0Quickguide: 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 AdministrationValues
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
Deploy an app
Domain should be started first ( asadmin start-domain )
Or through the adminsitration Interface
Check deployedapps
Undeployan app
Notice hello without the .war extension!
Deployingautomatically
Copy the war file into domain-dir/auto-deploy , Done!
Undeployingautomatically
Through the command line: del hello.war , Done!