Document Information

Preface

Part I Introduction

1.  Overview

2.  Using the Tutorial Examples

Required Software

JavaTM Platform, Standard Edition

Java EE 6 Software Development Kit (SDK)

SDK Installation Tips

Apache Ant

To Obtain Apache Ant

Java EE 6 Tutorial Component

To Obtain the Tutorial Component

NetBeans IDE

To Add Enterprise Server as a Server in NetBeans IDE

Starting the Administration Console

To Start the Administration Console in NetBeans IDE

Starting and Stopping the Java DB Database Server

Building the Examples

Tutorial Example Directory Structure

Getting the Latest Updates to the Tutorial

To Update the Tutorial through the Update Center

Debugging Java EE Applications

Using the Server Log

Using a Debugger

Part II The Web Tier

3.  Getting Started with Web Applications

4.  JavaServerTM Faces Technology

5.  Introduction to Facelets

6.  Unified Expression Language

7.  Using JavaServerTM Faces Technology in Web Pages

8.  Using Converters, Listeners and Validators

9.  Developing With JavaServerTM Faces Technology

10.  Java Servlet Technology

Part III Web Services

11.  Introduction to Web Services

12.  Building Web Services with JAX-WS

13.  Building RESTful Web Services with JAX-RS and Jersey

Part IV Enterprise Beans

14.  Enterprise Beans

15.  Getting Started with Enterprise Beans

16.  Running the Enterprise Bean Examples

Part V Contexts and Dependency Injection for the JavaTM EE Platform

17.  Introduction to Contexts and Dependency Injection for the JavaTM EE Platform

18.  Running the Basic Contexts and Dependency Injection Examples

Part VI Persistence

19.  Introduction to the Java Persistence API

20.  Running the Persistence Examples

21.  The Java Persistence Query Language

22.  Creating Queries Using the Criteria API

Part VII Security

23.  Introduction to Security in the Java EE Platform

24.  Getting Started Securing Enterprise Applications

25.  Getting Started Securing Web Applications

Part VIII JavaTM EE Supporting Technologies

26.  Introduction to JavaTM EE Supporting Technologies

27.  Transactions

28.  Resource Connections

Index

 

Starting and Stopping the Enterprise Server

To start the Enterprise Server, open a terminal window or command prompt and execute the following:

asadmin start-domain --verbose

A domain is a set of one or more Enterprise Server instances managed by one administration server. Associated with a domain are the following:

  • The Enterprise Server’s port number. The default is 8080.

  • The administration server’s port number. The default is 4848.

  • An administration user name and password.

You specify these values when you install the Enterprise Server. The examples in this tutorial assume that you chose the default ports.

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 (it will also go into the server log, which is located in domain-dir/logs/server.log).

Or, on Windows, choose the following:

Start → All Programs → Java EE 6 SDK → Start Application Server

After the server has completed its startup sequence, you will see the following output:

Domain domain1 started.

To stop the Enterprise Server, open a terminal window or command prompt and execute:

asadmin stop-domain domain1

Or, on Windows, choose the following:

Start → All Programs → Java EE 6 SDK → Stop Application Server

When the server has stopped you will see the following output:

Domain domain1 stopped.