Show TOC Start of Content Area

Component documentation JavaMail Tutorial Locate the document in its SAP Library structure

The Task

This tutorial describes the basic steps you have to take to create the JavaMail example. You can find the source files of the example under <DeveloperStudio_install_dir>\eclipse\examples\J2EE_JavaMail.zip.

The tutorial’s example is based mainly on servlets. However, mail sending (SMTP) has an alternative realization with a stateful session EJB:

Scheme of the Example

This graphic is explained in the accompanying text

Objective

By the end of this tutorial you will be able to:

      Use the J2EE Engine JavaMail API implementation.

      Use the mail functionality in an application.

Prerequisites

System, Installed Applications, and Authorizations

      SAP NetWeaver Developer Studio is installed.

      J2EE Engine is installed.

      JDK 1.4 of the SUN Microsystems is installed.

      You have administrative privileges to manage the configuration of the applications on the J2EE Engine.

Knowledge

      Java programming language and JAAS authentication model.

Overview of the Steps in the Tutorial

The steps are:

...

       1.      Creating EJB Project

       2.      Creating Web Project

       3.      Creating Assembly Project

       4.      Generating Files for Deployment

       5.      Deploying the EAR and starting the JavaMail example

Caution

The source of each file you have to create is located in the …/SAP/JDT/eclipse/examples/JavaMail.zip file. For each file, we assume that you use the source of the corresponding file in this JavaMail.zip.

All the examples are written in the J2EE Development Perspective of the SAP NetWeaver Developer Studio, under the J2EE Explorer view.

Next Step

Creating EJB Project

 

 

End of Content Area