Entering content frame

Procedure documentation Creating EJB Project Locate the document in its SAP Library structure

Use

This step consists of:

...

       1.      Creating a new EJB project and required EJB files

       2.      Creating a Java Class

       3.      Setting Classpath and Compiling Sources

       4.      Creating References in the ejb-jar.xml File

Note that we assume that you are using the required sources from the directory JavaMail/ejbModule/com/sap/engine/examples/ejb/javamail/

Procedure

...

       1.      Create a new EJB Module Project JavaMail.

Choose File ® New ® Project ® J2EE ® EJB Module Project. Choose Next.

This graphic is explained in the accompanying text

Specify JavaMail as the Project name and choose Finish.

This graphic is explained in the accompanying text

       2.      Right-click on the name of the project and choose New ® EJB.

This graphic is explained in the accompanying text

       3.      Specify SendMail as the name of the bean.

       4.      Select Stateful Session Bean from the dropdown menu Bean Type.

       5.      Specify com.sap.engine.examples.ejb.javamail as the Default EJB Package.

       6.      Leave the Generate default interfaces checkbox selected. Choose Finish.

This graphic is explained in the accompanying text

       7.      Overwrite the classes with the ones from the JavaMail.zip file. The classes are located in the package com.sap.engine.examples.ejb.javamail.

This graphic is explained in the accompanying text

 

When you have finished, continue with Creating a Java Class

 

 

Leaving content frame