Creating an EJB Project and an EAR Project
Procedure
In this step you create the EJB project, which provides the framework for the development of the message-driven bean (MDB). Then you add the EJB project to an Enterprise Archive (EAR).
-
Open the Developer Studio and specify the workspace.
-
Create a new project. In the Developer Studio from the menu path choose to start the New Project wizard.
-
Select , then choose Next .
-
In the New EJB Project screen, specify MyFirstMDB as a name of the project.
-
Select the Add project to an EAR checkbox, then choose New to open the New EAR Application Project wizard.
-
Enter MDBEAR in the Project name field.
-
In the Configuration area, choose Modify to adjust the project facets.
-
Select the Create SAP JMS resources descriptor checkbox in the Project Facet list to add the jms-resources.xml to the EAR project, then choose OK .
-
Choose Finish to create the EAR project and return to the New EJB Project wizard.
-
Choose Next , then choose Next again.
-
Deselect the Create an EJB Client JAR module to hold the client interfaces and classes checkbox.
-
Choose Finish .
You have created the EJB project MyFirstMDB and the EAR project MDBEAR . The structure of your project is currently displayed in the Project Explorer .
Result
You have created the EJB project.
Next Step

