| <?xml version="1.0" encoding="UTF-8"?> |
| <?xml-stylesheet type="text/xsl" href="../../../../wtp.xsl"?> |
| <html> |
| <head> |
| <meta name="root" content="../../../../.." /> |
| <title>test plan: Creating an ejb component.</title> |
| </head> |
| |
| <body> |
| <h1>jst j2ee</h1> |
| <h2>Intoduction</h2> |
| <p> |
| This test case walkthroughs the steps required to create an |
| ejb and ejb client component in the eclipse. |
| </p> |
| <BR /> |
| <h2>Steps</h2> |
| <p> |
| <ol> |
| <li> |
| Open the J2EE perspective, from the File menu, |
| New->Project->EJB->EJB Project |
| <table cellspacing="10" cellpadding="10"> |
| <tr> |
| <td> |
| <img src="images/ejbcomponentnew1.JPG" /> |
| </td> |
| </tr> |
| </table> |
| </li> |
| <br /> |
| <br /> |
| <li> |
| You will see EJB module wizard |
| <br /> |
| <table cellspacing="10" cellpadding="10"> |
| <tr> |
| <td> |
| <img src="images/ejbcomponentnew2.JPG" /> |
| </td> |
| </tr> |
| </table> |
| <br /> |
| Create the EJB module name "EJBModule", you will see |
| that by default "Add Module to an EAR application" |
| is checked and the name is defaulted to |
| "EJBModuleEAR", 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. Also notice that |
| "Create an EJb Client Jar module to hold the client |
| interfaces and classes" is also checked, this will |
| create an EJB client module named "EJBModuleClient" |
| in the project named "EJBModuleClient" |
| |
| <table cellspacing="10" cellpadding="10"> |
| <tr> |
| <td> |
| <img src="images/ejbcomponentnew3.JPG" /> |
| </td> |
| </tr> |
| </table> |
| </li> |
| <br /> |
| <br /> |
| <li> |
| Verify that in the .wtpmodule file of the |
| EJBModule |
| <ul> |
| <li>The workbench project/component "EJBModule" exists</li> |
| <li> |
| The "EJBModuleClient" module is dependent |
| module of the "EJBModule" |
| </li> |
| </ul> |
| </li> |
| <br /> |
| <br /> |
| <li> |
| Verify that in the .wtpmodule file of the |
| EJBModuleEAR |
| <ul> |
| <li> |
| The workbench project/component "EJBModuleEAR" exists |
| </li> |
| <li> |
| The "EJBModule" and the "EJBModuleClient" |
| are the dependent modules of the |
| "EJBModuleEAR" |
| </li> |
| </ul> |
| </li> |
| <br /> |
| <br /> |
| <li> |
| Verify that in the .wtpmodule file of the |
| EJBModuleClient |
| <ul> |
| <li> |
| The workbench module "EJBModuleClient" |
| exists |
| </li> |
| </ul> |
| </li> |
| <br /> |
| <br /> |
| <li> |
| Verify that in the EJBModule deployment descriptor |
| there is an entry EJBModuleClient.jar in the |
| <ejb-client-jar> |
| </li> |
| <br /> |
| <br /> |
| <li> |
| Verify that in the EJBModuleEAR deployment |
| descriptor there is an entry EJBModule.jar in the |
| <module> section |
| </li> |
| <br /> |
| <br /> |
| <li> |
| Build the modules, you will notice .deployables |
| folder created in the projects. |
| |
| Verify that you see following |
| <table cellspacing="10" cellpadding="10"> |
| <tr> |
| <td> |
| <img src="images/ejbcomponentnew4.JPG" /> |
| </td> |
| </tr> |
| |
| </table> |
| </li> |
| </ol> |
| </p> |
| </body> |
| </html> |