1. Quick Start for Basic Features
Starting and Stopping the Default Domain
Starting and Stopping the Database Server
Starting the Administration Console
To Start the Administration Console
Deploying and Undeploying Applications
To Obtain the Sample Application
Deploying and Undeploying the Sample Application From the Command Line
To Deploy the Sample Application From the Command Line
To List Deployed Applications From the Command Line
To Undeploy the Sample Application From the Command Line
Deploying and Undeploying Applications by Using the Administration Console
To Deploy the Sample Application by Using the Administration Console
To View Deployed Applications in the Administration Console
To Undeploy the Sample Application by Using the Administration Console
Deploying and Undeploying the Sample Application Automatically
High Availability Clustering and Load Balancing
Clusters of GlassFish Server Instances
Session Persistence and Failover
Load Balancing for Clustered Configurations
Updating and Extending an Existing Installation
To Access the Graphical Update Tool From the Command Line
To Access Update Tool by Using the Administration Console
Removing GlassFish Server 3.1 Software
To Remove GlassFish Server Software on UNIX, Linux, and Mac OS X Systems
The process of configuring and enabling applications to run within the GlassFish Server framework is referred to as deployment.
This section explains how to deploy, list, and undeploy applications. The procedures in this section use the hello.war sample application. The following topics are addressed here:
Deploying and Undeploying the Sample Application From the Command Line
Deploying and Undeploying Applications by Using the Administration Console
Deploying and Undeploying the Sample Application Automatically
This directory is referred to as sample-dir.
GlassFish Server provides asadmin subcommands for performing the following deployment-related tasks:
Before You Begin
The sample application must be available before you start this task. To download the sample, see To Obtain the Sample Application. At least one GlassFish Server domain must be started before you deploy the sample application.
The general form for the command is as follows:
as-install/bin/asadmin deploy war-name
To deploy the hello.war sample, the command is as follows:
as-install/bin/asadmin deploy sample-dir/hello.war
http://localhost:8080/hello
The application's start page is displayed, and you are prompted to type your name.
Hi, my name is Duke. What's yours?
The application displays a customized response, giving you a personal Hello.
See Also
For more information about the deploysubcommand, see deploy(1).
For more information about deploying applications from the command line, see Oracle GlassFish Server 3.1 Application Deployment Guide.
as-install/bin/asadmin list-applications
The general form for the command is as follows:
as-install/bin/asadmin undeploy war-name
For war-name, use the literal hello, not the full hello.war name.
For the hello.war example, the command is as follows:
as-install/bin/asadmin undeploy hello
See Also
For more information about the undeploy subcommand, see undeploy(1).
The graphical Administration Console of GlassFish Server enables you to perform the following deployment-related tasks:
To Deploy the Sample Application by Using the Administration Console
To Undeploy the Sample Application by Using the Administration Console
Before You Begin
The sample application must be available before you start this task. To download the sample, see To Obtain the Sample Application. At least one GlassFish Server domain must be started before you deploy the sample application.
http://localhost:4848
The Applications page is displayed.
The Deploy Applications or Modules page is displayed.
You are returned to the Deploy Applications or Modules page.
hello
You are returned to the Applications page.
The default URL for the application is as follows:
http://localhost:8080/hello/
See Also
For more information, see the Administration Console online help.
http://localhost:4848
Expand the node to list deployed applications. Deployed applications are also listed in the table on the Applications page.
http://localhost:4848
The Applications page is displayed.
See Also
For more information, see the Administration Console online help.
GlassFish Server enables you to performing the following deployment-related tasks automatically:
You can deploy applications automatically by placing them in the as-install/domains/domain-name/autodeploy directory, where domain-name is the name of the domain for which you want to configure automatic deployment. For this example, use the default domain, domain1:
as-install/domains/domain1/autodeploy
Before You Begin
The sample application must be available before you start this task. To download the sample, see To Obtain the Sample Application.
cp sample-dir/hello.war as-install/domains/domain-name/autodeploy
copy sample-dir\hello.war as-install\domains\domain-name\autodeploy
GlassFish Server automatically discovers and deploys the application. The default URL for the application is as follows:
http://localhost:8080/hello/
cd as-install/domains/domain-name/autodeploy
rm hello.war
del hello.war