Glassfish 4 quick guide

Post on 05-Jun-2015

686 views 4 download

Tags:

description

Understand how glassfish is organised and quickly get how to start a domain, deploy an app through the command line or the administration interface, and stop the server. It is just a quick introduction.

Transcript of Glassfish 4 quick guide

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!