Show TOC Start of Content Area

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

Use

In this step you create a new EJB project and the required EJB files. Note that in this tutorial we assume you are using the required sources from directory JavaMail/ejbModule/com/sap/engine/examples/ejb/javamail/.

Procedure

Using the SAP NetWeaver Developer Studio:

...

       1.      From the menu path Choose File ® New ® Project ® J2EE ® EJB Module Project.Choose Next.

       2.      Specify JavaMail as the Project name and choose Finish.

Result Preview

This graphic is explained in the accompanying text

       3.      Open the project context menu and choose New ® EJB.

       4.      In the New EJB dialog that appears, specify SendMail as the name of the bean.

       5.      From the dropdown menu Bean Type select Stateful Session Bean.

       6.      As Default EJB Package specify com.sap.engine.examples.ejb.javamail.

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

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

Result

You have created the new EJB and its required files for this tutorial classes.

Result Preview

This graphic is explained in the accompanying text

 

Next Step

Creating a Java Class

 

 

End of Content Area