Creating EJB 2.1 Components 
In this document you can find the differences between the wizards for creating Enterprise JavaBeans (EJB) 2.1 components and Enterprise JavaBeans (EJB) 3.0 components in the Developer Studio. They are both created using the EJB Project wizard but with different project facets for each version.
In the context menu of the Project Explorer, choose .
Enter the name of the EJB project and choose Modify. Select SAP EJB J2EE 1.4 Project in the Configurations field.
Define the project facets. You can save the currently selected facets; these are the default facets for the SAP EJB J2EE 1.4 Project which you chose in the Configurations field. The default facets are:
EJB Module with version 2.1
Java 6.0, but you can change the version to Java 1.4 and Java 5.0
SAP-Specific EJB Module with version 2.1
You can optionally add Java Persistence, and EJBDoclet facets. Choose OK.
Note
You can change the project facets later at any time from in the context menu of the project.
In the Target Runtime field, select SAP Libraries. This automatically sets the necessary libraries for building the project as specified in the Configuration field.
Choose Finish.
More information: Creating EJB 3.0 Projects in the Developer Studio
The wizards for creating enterprise beans in EJB 2.1 components are different from those in EJB 3.0 components.
In EJB 2.1 components you can create enterprise beans using the same wizard. Unlike EJB 3.0 components, in EJB 2.1 components you can create not only session and message-driven beans but entity beans as well.
In the context menu of the EJB Project, choose .
In the first page of the New EJB wizard enter the name of the bean and select the bean type. Choose Finish.
Note
The entity beans are no longer part of the EJB 3.0 Specification. You can create them only in EJB 2.x components.
More information about creating:
session beans 3.0: Creating Session Beans in the Developer Studio
message-driven beans 3.0: Creating Message-Driven Beans in the Developer Studio
When you create an EJB Project, the Developer Studio automatically creates both ejb-jar.xml and ejb-j2ee-engine.xml. You can use the multipage editor for editing the deployment descriptors to configure your EJB components.
More information: