| <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/Removong an EJb client view</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/Removong an EJb client view</font></td><td width="40%"><img width="207" hspace="50" height="129" align="middle" src="../../../../../webtools/images/wtplogosmall.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"> </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 valign="top" align="right"> </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 EjbClient view Project</B> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top" align="right"> </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 valign="top" align="right"><img width="16" height="16" border="0" src="../../../../../images/Adarrow.gif"></td><td> |
| <B>Removing EjbClient view Project</B> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top" align="right"> </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> |