Java Reference
In-Depth Information
Next Steps
To use the ant command, add as-install-parent /ant/bin to your
PATH environment variable.
Starting and Stopping the GlassFish Server
To start the GlassFish Server from the command line, open a terminal window or com-
mand prompt and execute the following:
asadmin start-domain --verbose
A domain is a set of one or more GlassFish Server instances managed by one administra-
tion server. Associated with a domain are the following:
• The GlassFish Server's port number. The default is 8080.
• The administration server's port number. The default is 4848.
• An administration user name and password. The default user name is admin , and
by default no password is required.
You specify these values when you install the GlassFish Server. The examples in this tu-
torial assume that you chose the default ports as well as the default user name and lack of
password.
With no arguments, the start-domain command initiates the default domain, which is
domain1 . The --verbose flag causes all logging and debugging output to appear on
the terminal window or command prompt. The output also goes into the server log, which
is located in domain-dir /logs/server.log .
Or, on Windows, from the Start menu, select All Programs, then select Java EE 6 SDK,
then select Start Application Server.
To stop the GlassFish Server, open a terminal window or command prompt and execute:
asadmin stop-domain domain1
Or, on Windows, from the Start menu, select All Programs, then select Java EE 6 SDK,
then select Stop Application Server.
To Start the GlassFish Server Using NetBeans IDE
1. Click the Services tab.
2. Expand the Servers node.
Search WWH ::




Custom Search