Show TOC

Creating an EJB Project and an EAR ProjectLocate this document in the navigation structure

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).

  1. Open the Developer Studio and specify the workspace.

  2. Create a new project. In the Developer Studio from the menu path choose Start of the navigation path File Next navigation step New Next navigation step Project End of the navigation path to start the New Project wizard.

  3. Select Start of the navigation path EJB Next navigation step EJB Project End of the navigation path, then choose Next .

  4. In the New EJB Project screen, specify MyFirstMDB as a name of the project.

  5. Select the Add project to an EAR checkbox, then choose New to open the New EAR Application Project wizard.

  6. Enter MDBEAR in the Project name field.

  7. In the Configuration area, choose Modify to adjust the project facets.

  8. 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 .

  9. Choose Finish to create the EAR project and return to the New EJB Project wizard.

  10. Choose Next , then choose Next again.

  11. Deselect the Create an EJB Client JAR module to hold the client interfaces and classes checkbox.

  12. 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.