jst j2ee
test plan: Creating an ejb component.
Intoduction
 

This test case walkthroughs the steps required to create an ejb and ejb client component in the eclipse.

 
Steps
 

  1. Open the J2EE perspective, from the File menu, New->Project->EJB->EJB Project



  2. You will see EJB Project wizard Create the EJB project name "EJBProject", you will see that by default "Add Module to an EAR application" is checked and the name is defaulted to "EJBProjectEAR", this will create an EAR module in a project with the name "EJBModuleEAR". You will need to select a valid server target from the list provided. If no server targets are installed follow the "new" button to install.



  3. Click Next to go to Select Project Facets Page. You can install additional factets and bind to a runtime.



  4. Click Next to go to Settings Page. You can overwrite the default settings here.



  5. Hit finish, the ejb project will be created.

  6. Verify that in the .wtpmodule file of the EJBModule
    • The workbench project/component "EJBProject" exists
    • The "EJBProjectClient" module is dependent module of the "EJBProject"


  7. Verify that in the .wtpmodule file of the EJBProjectEAR
    • The workbench project/component "EJBProjectEAR" exists
    • The "EJBProject" and the "EJBProjectClient" are the dependent modules of the "EJBProjectEAR"


  8. Verify that in the .wtpmodule file of the EJBModuleClient
    • The workbench module "EJBProjectClient" exists


  9. Verify that in the EJBProject deployment descriptor there is an entry EJBProjectClient.jar in the <ejb-client-jar>


  10. Verify that in the EJBProjectEAR deployment descriptor there is an entry EJBProject.jar in the <module> section


  11. Build the modules, you will notice .deployables folder created in the projects. Verify that you see following