Setting Up Your Development Environment

Tutorial 5: Creating the Development Source Directory Structure

This tutorial describes how to create the development directories in which you store the MedRec source files and compiled classes. The tutorial explains the directory structure and contents for developing each component of a J2EE application, including Web applications, EJBs, and Web services.

Although MedRec consists of three separate applications, this tutorial explains how to manually create a development directory for only one application—the Physician application. The final step in the populates the Physician application directory with source files, and automatically creates development directories for the Patient and Controller applications.

The tutorial includes the following sections:

 

 

 

Prerequisites

Before starting this tutorial:

 

 

 

Procedure

Follow these steps to create the source directory structure for the MedRec application suite:

Step 1: Create the top-level source and class directories.

To do this:

  1. first

  2. second

Step 2: Create the Web application source directories.

To do that:

  1. first

  2. second

Step 3: Create the EJB source directories.

To do something else:

  1. first

  2. second

Step 4: Create the Web service source directories.

To do something else:

  1. first

  2. second

Step 5: Copy the MedRec source files into your development directory.

To do something else:

  1. first

  2. second

 

 

 

Best Practices

 

 

 

The Big Picture

The MedRec application suite consists of three separate applications for the patient, physician, and administrator user roles. Using separate application for each user role allows you to distribute each application function across different WebLogic Server instances as needed. For example, the MedRec sample domain (optionally installed with WebLogic Server) deploys all three applications on a single server instance for easy demonstration purposes. The MedRec tutorials deploy the applications across two server instances to illustrate the use of Web Services between the Physician and Controller Applications.

Using separate development directories for each application

 

 

 

Related Reading

 

back to top