+ All Categories
Home > Education > Glassfish 4 quick guide

Glassfish 4 quick guide

Date post: 05-Jun-2015
Category:
Upload: zakaria-bouazza
View: 686 times
Download: 4 times
Share this document with a friend
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.
Popular Tags:
17
GlassFish 4.0 Quickguide: Start server, stop, deploy applications [HOW-TO] @ElZakaria
Transcript
Page 1: Glassfish 4 quick guide

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

@ElZakaria

Page 2: Glassfish 4 quick guide

Conventions

Following slides describes paths and filenames usually used in books and tutorials about Glassfish Server.

Page 3: Glassfish 4 quick guide

as-install [Windows]

Represents the base installation directory for GlassFish Server.

Page 4: Glassfish 4 quick guide

as-install-parent

Represents the parent of the base installation directory for GlassFish Server.

Page 5: Glassfish 4 quick guide

domain-root-dir

Represents the directory in which a domain is created by default.

Page 6: Glassfish 4 quick guide

domain-dir

Represents the directory in which a domain's configuration is stored.

Page 7: Glassfish 4 quick guide

Default AdministrationValues

Page 8: Glassfish 4 quick guide

Starting a domain[Only one domain present]

Need to add which domain in case of additional existing domain in the domain-root-dir

Page 9: Glassfish 4 quick guide
Page 10: Glassfish 4 quick guide

Stopping a domain

Check if the domain is running:

Page 11: Glassfish 4 quick guide

Deploy an app

Download the hello.war sample: http://glassfish.java.net/downloads/quickstart/hello.war

Page 12: Glassfish 4 quick guide

Deploy an app

Domain should be started first ( asadmin start-domain )

Or through the adminsitration Interface

Page 13: Glassfish 4 quick guide
Page 14: Glassfish 4 quick guide

Check deployedapps

Page 15: Glassfish 4 quick guide

Undeployan app

Notice hello without the .war extension!

Page 16: Glassfish 4 quick guide

Deployingautomatically

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

Page 17: Glassfish 4 quick guide

Undeployingautomatically

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


Recommended