10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Starting and Stopping the Application Server<br />

Starting and Stopping the Application Server<br />

68<br />

To start the Application Server, open a terminal window or command prompt and execute the<br />

following:<br />

asadmin start-domain --verbose domain1<br />

A domain is a set of one or more Application Server instances managed by one administration<br />

server. Associated with a domain are the following:<br />

■ <strong>The</strong> Application Server’s port number. <strong>The</strong> default is 8080.<br />

■ <strong>The</strong> administration server’s port number. <strong>The</strong> default is 4848.<br />

■ An administration user name and password.<br />

You specify these values when you install the Application Server. <strong>The</strong> examples in this tutorial<br />

assume that you chose the default ports.<br />

With no arguments, the start-domain command initiates the default domain, which is<br />

domain1. <strong>The</strong> --verbose flag causes all logging and debugging output to appear on the terminal<br />

window or command prompt (it will also go into the server log, which is located in<br />

domain-dir/logs/server.log).<br />

Or, on Windows, you can choose:<br />

Programs → Sun Microsystems → Application Server PE 9 → Start Default Server<br />

After the server has completed its startup sequence, you will see the following output:<br />

Domain domain1 started.<br />

To stop the Application Server, open a terminal window or command prompt and execute:<br />

asadmin stop-domain domain1<br />

Or, on Windows, choose:<br />

Programs → Sun Microsystems → Application Server PE 9 → Stop Default Server<br />

When the server has stopped you will see the following output:<br />

Domain domain1 stopped.<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!