blob: bd86bb563ce9d5880d40197fff5216cce385d559 [file] [log] [blame]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../../../default_style.css" type="text/css">
<link rel="stylesheet" href="../../../../../webtools/wtp.css" type="text/css">
<title>Creating a Application Client Project</title>
</head>
<body>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<tbody>
<tr>
<td width="60%" align="left"><font class="indextop">jst j2ee</font>
<br>
<font class="indexsub">Creating a Application Client Project</font></td><td width="40%"><img width="120" hspace="50" height="86" align="middle" src="../../../../../images/Idea.jpg"></td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<col width="16">
<col width="*">
<tbody>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Intoduction</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
This test case outlines the steps required to create a
Application Client Project.
</p>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<br>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Steps</font></b></td>
</tr>
<tr>
<td valign="top" align="right"><img width="16" height="16" border="0" src="../../../../../images/Adarrow.gif"></td><td>
<B>Creating a Application Client</B>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<OL>
<LI>
<P>
From any perspective, click
<B>
File &gt; New &gt; Other &gt; J2EE &gt;
Application Client Project
</B>
...
</P>
</LI>
<LI>
<P>Click Next.</P>
<IMG border="0" src="images/flexAppClient1.jpg">
</LI>
<LI>
<P>
Enter 'AppClientProject' into Project Name field and
then click 'Show Advanced' to show the details of the
creation. Select a J2EE Runtime Library server target.
Take the other default values as shown below.
</P>
<IMG border="0" src="images/flexAppClient2.jpg">
</LI>
<LI>
<P>
Click Finish on the New Application Client Project wizard. Your
Application Client project and EAR project have now been created.
</P>
</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 AppClientProject in the Project
Explorer.
</P>
<IMG border="0" src="images/flexAppClient3.jpg">
<P>
After expanding take special notice of the component folders
which have been created. Notice the contained appClientModule/META-INF
which represents the App Client module. Likewise, notice the
AppClientProjectEAR (and contained folders and files) which represents
the EAR which contains the App Client.
</P>
</LI>
<LI>
<P>
Next create a Test java class in the App Clients
source folder 'AppClientProject/appClientModule'.
Defaults are provided in the following image.
</P>
<IMG border="0" src="images/flexAppClient4.jpg">
<P>
After the class is created, perform a Project &gt;
Clean to kick off a full build.
</P>
</LI>
<LI>
<P>
Switching now to the Resource perspective the ouput
of the builder can be verified. In the Navigator you
will see all resources as they exist on disk. After
expanding the Java Project you will notice a
'.deployables' folder. This folder represents the
deployable output (J2EE spec compliant)
generated via the Component Structural Builder.
</P>
<IMG border="0" src="images/flexAppClient5.jpg">
<P>
After expanding take notice of the component
under the .deployables. In the App Client, take special
notice of the sample/Test.class representing the
output of the previously created java class. Also in
the 'AppClientProjectEAR' check the application.xml
to insure it contains an entry to the App Client and
also open the AppClientProject.jar contained in the
EAR with a zip utility to insure the contents
contain the App Client's Manifest.MF,
application-client.xml and the Test.class.
</P>
</LI>
</OL>
</td>
</tr>
</tbody>
</table>
</body>
</html>