| <?xml version="1.0" encoding="UTF-8"?> |
| <?xml-stylesheet type="text/xsl" href="../../../../wtp.xsl"?> |
| <html> |
| <head> |
| <meta name="root" content="../../../../.." /> |
| <title>Creating/Removong an EJb client view</title> |
| </head> |
| <body> |
| <h1>jst j2ee</h1> |
| <h2>Intoduction</h2> |
| <p> |
| This test case outlines the steps required to create/remove an EJB client view project. |
| </p> |
| <br /> |
| |
| <h2>Steps</h2> |
| <h3> |
| <B>Creating EjbClient view Project</B> |
| </h3> |
| <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> |
| |
| <h3> |
| <B>Removing EjbClient view Project</B> |
| </h3> |
| Veriy that: |
| <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> |
| </body> |
| </html> |