| <?xml version="1.0" encoding="UTF-8"?> |
| <?xml-stylesheet type="text/xsl" href="../../../../wtp.xsl"?> |
| <html> |
| <head> |
| <meta name="root" content="../../../../.." /> |
| <title>Creating a J2EE Application (EAR) Module</title> |
| </head> |
| <body> |
| <h1>jst j2ee</h1> |
| <h2>Intoduction</h2> |
| <p> |
| This test case outlines the steps required to create a J2EE |
| Application Project. |
| </p> |
| <br /> |
| |
| <h2>Steps</h2> |
| <h3> |
| <B>Creating a J2EE Application Project</B> |
| </h3> |
| <OL> |
| <LI> |
| <P> |
| From any perspective, click |
| <B> |
| File > New > Other > J2EE > Enterprise Application Project |
| </B> |
| ... |
| </P> |
| <IMG border="0" src="images/app_creation1.jpg" /> |
| </LI> |
| <LI> |
| <P>Click Next.</P> |
| <IMG border="0" src="images/app_creation2.jpg" /> |
| </LI> |
| <LI> |
| <P> |
| Enter the Name 'EARProject', then click 'Show |
| Advanced' to show the details of the creation. Take |
| the default values. |
| </P> |
| </LI> |
| <LI> |
| <P> |
| Click Next on New EAR Application wizard. The |
| add modules to EAR page allows existing workpace |
| modules to be added to the new EAR module. In this |
| case there aren't any. Application Client, EJB, |
| Connector, and Web modules may be created by |
| clicking the 'New Module...' button. In this case, |
| however, simply click the finish buutton to create |
| the EAR Module without creating any other J2EE |
| modules or adding any exiting modules to the EAR. |
| </P> |
| <IMG border="0" src="images/application_creation5.jpg" /> |
| </LI> |
| <LI> |
| <P> |
| After the wizard finishes, if you are not already in |
| the J2EE perspective, you will be prompted to switch |
| agree by selecting 'Yes'. In the J2EE perspective |
| you will see the EARProject in the Project Explorer. |
| </P> |
| <IMG border="0" src="images/app_creation6.jpg" /> |
| </LI> |
| <LI> |
| <P> |
| Next create the following J2EE Projects. Be sure to |
| click the "Show Advanced" button and add each module |
| to the EAR module created above. Otherwise, choose |
| the defaults (except for the Web Module, whose |
| default is not to be added to an EAR). |
| </P> |
| <P> |
| <TABLE border="1"> |
| <TBODY> |
| <TR> |
| <TD> |
| <B>Module Type</B> |
| </TD> |
| <TD> |
| <B>Module Name</B> |
| </TD> |
| </TR> |
| <TR> |
| <TD>J2EE Application Client Module</TD> |
| <TD>MyClient</TD> |
| </TR> |
| <TR> |
| <TD>Dynamic Web Module</TD> |
| <TD>MyWeb</TD> |
| </TR> |
| </TBODY> |
| </TABLE> |
| </P> |
| <P>Here is an example for the first one:</P> |
| <IMG border="0" src="images/app_creation7.jpg" /> |
| </LI> |
| |
| <LI> |
| <P> |
| Now, you should see the modules represented under in the Project Explorer |
| </P> |
| <IMG border="0" src="images/app_creation8.jpg" /> |
| </LI> |
| |
| <LI> |
| <P> |
| Create another EAR Project ('AnotherEAR'), except this time |
| include all the modules on the second page of the new EAR Module |
| Wizard. |
| </P> |
| <IMG border="0" src="images/app_creation9.jpg" /> |
| <P> |
| All the seleted modules should be added to the EAR |
| when finishing the wizard. Verify this by checking |
| the application.xml in the new EAR Module. |
| </P> |
| </LI> |
| <LI> |
| <P> |
| Now create another EAR Module ('YetAnotherEAR'), |
| except this time click the 'New Module...' button on |
| the second page of the Wizard. |
| Create some new modules from this page. |
| </P> |
| </LI> |
| <LI> |
| <P> |
| The second page of the new EAR Module Wizard should |
| only display J2EE modules which can be added the the |
| new Application. For example, if creating a J2EE 1.3 |
| Application, then only 1.3 compliant Modules should |
| be displayed in this list. Ensure this is working |
| properly by creating multiple Modules with multiple |
| versions. |
| </P> |
| </LI> |
| </OL> |
| </body> |
| </html> |