Entering content frame

Component documentationJavaMail Tutorial Locate the document in its SAP Library structure

Purpose

This tutorial describes the basic steps you have to take to create the JavaMail example. You can view and start the original example on the Start page of the J2EE Engine under http://<host>:<port>/index.html ® J2EE Engine Examples ® JavaMail.

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.

Implementation Considerations

The example uses the J2EE Engine JavaMail API implementation. However, it is used to demonstrate how the mail functionality can be used in an application.

The 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

 

 

Leaving content frame