Exit Print View

Sun GlassFish Enterprise Server v3 Application Development Guide

  This Document Entire Library
Print View

Document Information

Preface

Part I Development Tasks and Tools

1.  Setting Up a Development Environment

2.  Class Loaders

3.  Using Ant with Enterprise Server

Setting Up Your Ant Environment

Defining the ANT_OPTS Variable

Defining a Target

Enterprise Server Ant Tasks

The sun-appserv-deploy Task

Subelements of sun-appserv-deploy

Attributes of sun-appserv-deploy

Examples of sun-appserv-deploy

The sun-appserv-undeploy Task

Subelements of sun-appserv-undeploy

Attributes of sun-appserv-undeploy

Examples of sun-appserv-undeploy

The sun-appserv-instance Task

Subelements of sun-appserv-instance

Attributes of sun-appserv-instance

Examples of sun-appserv-instance

The sun-appserv-component Task

Subelements of sun-appserv-component

Attributes of sun-appserv-component

Examples of sun-appserv-component

The sun-appserv-admin Task

Subelements of sun-appserv-admin

Attributes of sun-appserv-admin

Examples of sun-appserv-admin

The sun-appserv-jspc Task

Attributes of sun-appserv-jspc

Example of sun-appserv-jspc

The sun-appserv-update Task

Attributes of sun-appserv-update

Example of sun-appserv-update

The wsgen Task

Attributes of wsgen

Example of wsgen

The wsimport Task

Attributes of wsimport

Example of wsimport

Reusable Subelements

The server Subelement

Attributes of server

Examples of server

The component Subelement

Attributes of component

Examples of component

The fileset Subelement

4.  Debugging Applications

Part II Developing Applications and Application Components

5.  Securing Applications

6.  Developing Web Services

7.  Using the Java Persistence API

8.  Developing Web Applications

9.  Using Enterprise JavaBeans Technology

10.  Using Container-Managed Persistence

11.  Developing Java Clients

12.  Developing Connectors

13.  Developing Lifecycle Listeners

Part III Using Services and APIs

14.  Using the JDBC API for Database Access

15.  Using the Transaction Service

16.  Using the Java Naming and Directory Interface

17.  Using the Java Message Service

18.  Using the JavaMail API

Index

Chapter 3

Using Ant with Enterprise Server

The Sun GlassFish Enterprise Server provides server-specific Ant tasks, which are described in the following sections:

Enterprise Server is compatible with Apache Ant versions 1.6.5 or greater. If you don't have Ant installed, you can download it from the Update Tool. The Apache Ant Build Tool add-on component supplies Ant version 1.7.1. For more information about the Update Tool, see Update Tool in Sun GlassFish Enterprise Server v3 Administration Guide.

For more information about Ant, see the Apache Software Foundation web site at http://ant.apache.org/.

For information about standard Ant tasks, see the Ant documentation at http://ant.apache.org/manual/.


Note - Variables in the examples in this chapter, such as ${asinstalldir}, reference values defined in build.xml or properties files.