About the Examples

This section tells you everything you need to know to install, build, and run the examples.

Required Software

Java WSDP 1.6 Bundle

The example source for the technologies in this tutorial is contained in the Java WSDP 1.6 bundle. If you are viewing this online, you need to download the Java WSDP 1.6 bundle from:

http://java.sun.com/webservices/download/webservicespack.html 

After you have installed the Java WSDP 1.6 bundle, the example source code is in the subdirectories of the <JWSDP_HOME>/<technology>/samples/ directory. For example, the examples for JAXB are included in the Java WSDP in the subdirectories of the <JWSDP_HOME>/jaxb/samples directory.

Application Server

Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 is the build and runtime environment for the tutorial examples. To build, deploy, and run the examples, you need a copy of the Application Server and the Java 2 Software Development Kit, Standard Edition (J2SE SDK) 1.4.2 or higher (J2SE 5.0 is recommended). The Application Server and J2SE SDK are contained in the J2EE 1.4 SDK. If you already have a copy of the J2SE SDK, you can download the Application Server from:

http://java.sun.com/j2ee/1.4/download.html#sdk  

You can also download the J2EE 1.4 SDK--which contains the Application Server and the J2SE SDK--from the same site.

Building the Examples

Most of the examples in the Java WSDP are distributed with a build file for Ant, a portable build tool contained in the Java WSDP. For information about Ant, visit http://ant.apache.org/. Directions for building the examples are provided in each chapter. Most of the tutorial examples in the J2EE 1.4 Tutorial are distributed with a configuration file for asant, a portable build tool contained in the Application Server. This tool is an extension of the Ant tool developed by the Apache Software Foundation (http://ant.apache.org). The asant utility contains additional tasks that invoke the Application Server administration utility asadmin. Directions for building the examples are provided in each chapter.

In order to run the Ant scripts, you must configure your environment and properties files as follows: