<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><link type="text/css" href="../../../../../default_style.css" rel="stylesheet"><link type="text/css" href="../../../../../webtools/wtp.css" rel="stylesheet"><title>Creating/Removong an EJb client view</title></head><body><table border="0" cellpadding="2" cellspacing="5" width="100%"><tbody><tr><td align="left" width="60%"><font class="indextop">jst j2ee</font><br><font class="indexsub">Creating/Removong an EJb client view</font></td><td width="40%"><img src="../../../../../webtools/images/wtplogosmall.jpg" align="middle" height="129" hspace="50" width="207" alt="WTP Logo" usemap="logomap"><map id="logomap" name="logomap"><area coords="0,0,207,129" href="/webtools/" alt="WTP Home"></map></td></tr></tbody></table><table border="0" cellpadding="2" cellspacing="5" width="100%"><col width="16"><col width="*"><tbody><tr><td colspan="2" align="left" bgcolor="#0080c0" valign="top"><b><font color="#ffffff" face="Arial,Helvetica">Intoduction</font></b></td></tr><tr><td align="right" valign="top"> | |
| |
</td><td valign="top"><p> | |
This test case outlines the steps required to create/remove an EJB client view project. | |
</p></td></tr><tr><td align="right" valign="top"> | |
| |
</td><td valign="top"><br></td></tr><tr><td colspan="2" align="left" bgcolor="#0080c0" valign="top"><b><font color="#ffffff" face="Arial,Helvetica">Steps</font></b></td></tr><tr><td align="right" valign="top"><img src="../../../../../images/Adarrow.gif" border="0" height="16" width="16"></td><td> | |
<B>Creating EjbClient view Project</B> | |
</td></tr><tr><td align="right" valign="top"> | |
| |
</td><td valign="top"><ol> | |
<li> | |
<p> | |
From any perspective, go to the EJb project and right click, | |
Ejb client view creation is only possible if the Ejb project belongs to an EAR. | |
</p> | |
<IMG border="0" src="images/ejbclient1.jpg"> | |
</li> | |
<li> | |
<p>You will see</p> | |
<IMG border="0" src="images/ejbclient2.jpg"> | |
</li> | |
<li> | |
<p> | |
Specify the name of the Client view project and press Finish. | |
</p> | |
Verify that: | |
<ul> | |
<li> | |
The ejb project has the client uri in its manifest and the client project in the .classpath, | |
client uri should also be in the deployment descriptor, | |
the name should be what you have specified in the Client jar uri in the UI. | |
</li> | |
<br><br> | |
<li> | |
The ejb project has a reference to the client view component in the .component | |
</li> | |
<br><br> | |
<li> | |
The manifest entries in the ejb project are copied to the Ejb client view project | |
and the .classpath modified accordingly. | |
</li> | |
<br><br> | |
<li> | |
Local, remote interfaces are copied in the Ejb client view, the bean file should | |
remain in the ejb project. | |
</li> | |
<br><br> | |
<li> | |
All of the EAR projects who had reference to the ejb project should now have reference to the | |
ejb client view project too, <b>the reference to the ejb project shouldn't be removed </b> | |
</li> | |
<br><br> | |
<li> | |
The projects which were having the ejb project in their classpath now have | |
the ejb client view project, for e.g. a web project. The reference to the | |
Ejb component should be removed and a new reference to the Ejb client view | |
should be created. Also the ejbproject uri in the manifest should be replaced by the | |
client jar uri. | |
</li> | |
<br><br> | |
<li> | |
Export the EAR, in the .ear the name of the Client view jar should be same | |
as specified in the UI. | |
</li> | |
</ul> | |
</li> | |
</ol></td></tr><tr><td align="right" valign="top"><img src="../../../../../images/Adarrow.gif" border="0" height="16" width="16"></td><td> | |
<B>Removing EjbClient view Project</B> | |
</td></tr><tr><td align="right" valign="top"> | |
| |
</td><td valign="top"><ul> | |
<li> | |
In the ejb project, client uri in its manifest and in the deployment descriptor, | |
is removed. | |
</li> | |
<br><br> | |
<li> | |
In the ejb project, reference to the client view component in the .component | |
is removed. | |
</li> | |
<br><br> | |
<li> | |
The manifest entries in the ejb client project are copied to the Ejb project | |
and the .classpath modified accordingly. | |
</li> | |
<br><br> | |
<li> | |
All java files are copied in the Ejb project from the Ejb client view. | |
</li> | |
<br><br> | |
<li> | |
All of the EAR projects who had reference to the ejb client project, | |
the reference should now be removed. | |
</li> | |
<br><br> | |
<li> | |
The projects which were having the ejb client project in their classpath now have | |
the ejb project. The reference to the | |
Ejb client view component should be removed and a new reference to the Ejb project | |
should be created. Also the ejb client uri in the manifest should be replaced by the | |
ejb jar uri. | |
</li> | |
<br><br> | |
</ul></td></tr></tbody></table></body></html> |