Packaging Samples
iPlanetTM Application Server Samples

Updated June 12, 2001

Prior to installing the Packaging samples, review the Getting Started section which includes a checklist of pre-requisites for deploying the sample applications to iPlanet Application Server.

Overview

The packaging samples demonstrate a number of methods in which applications and components can be packaged and deployed to the iPlanet Application Server.

Each of the samples in this section calculates the Simple Interest and the Compound Interest. As you work with samples from A to E, the samples become progressively more complex in their packaging structure. All of the samples reuse the same EJB source code and the helper classes. Each sample has its own WAR module (static files, JSPs and servlets). This is intended to simulate a real world scenario where business logic (stored in EJBs) and libraries are reused by different client applications.
 
Sample
WAR to EJB JAR Access
Mutiple WARs

Multiple
EJB JARs

Cross WAR Access
Cross JAR Access
Module- based Registration
RMI/IIOP Access
WAR Access to Resource File
WAR Access to Library
EJB JAR Access to Library
X
-
-
-
-
-
-
-
-
-
X
X
X
X
X
-
-
-
-
-
X
-
-
-
-
X
-
-
-
X
-
-
-
-
-
-
X
-
-
-
X
-
-
-
-
-
-
X
X
-

Code Structure

The packaging samples are structured to demonstrate several ways in which a single code base can be packaged into an application. All the samples share the same source code for EJBs and helper classes.

The common code is in the directory:

install_dir/ias/ias-samples/pkging/components

The source code for all EJBs is under:

install_dir/ias/ias-samples/pkging/components/src/samples/pkging/ejb/

The source code for the shared library classes is under:

install_dir/ias/ias-samples/pkging/components/src/samples/pkging/lib/

Each sample includes WAR content in its own source directory. For example, the pkgingA sample houses all static files and JSPs in the directory:

install_dir/ias/ias-samples/pkging/pkgingA/src/docroot

and all servlets are housed under:

install_dir/ias/ias-samples/pkging/pkgingA/src/samples/pkgingA/servlet

Copyright (c) 2001 Sun Microsystems, Inc. All rights reserved.