In this step you create the EJB 3.0 project, which provides the framework for the development of the message-driven bean (MDB). Then you add the EJB 3.0 project to an Enterprise Application 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 File → New → Project to start the New Project wizard.
3. Select EJB → EJB Project and choose Next.
4. Specify MyFirstMDB as the name of the project. Set the Add project to an EAR indicator and enter MDBEar in the EAR Project Name field. This automatically creates the Enterprise Application Archive and adds the EJB 3.0 project to it.
5. Choose Finish.
You have created the EJB 3.0 project MyFirstMDB and the EAR project MDBEar. The structure of your project is currently displayed in the Project Explorer.
In this tutorial, you also create and implement an MDB, which is a consumer of a message sent by a client residing on the server. There is also an example SimpleSenderClient class which is the client sending a message to an MDB.
The process of developing and deploying an MDB application consists of the following steps:
...
1. Create an EJB Project.
2. Develop the enterprise bean (EJB).
3. Assemble the enterprise application archive (EAR file).
You can choose the type of the sender to be either an internal Java EE client (another EJB, servlet or JSP) or a remote Java client.
You have created the EJB 3.0 project.