ibm.com/developerWorks
Presented by developerWorks, your source for great tutorials
...
* @ejb.ejb ref ejb name="DeptBean" view type="local"
* @ejb.ejb ref ejb name="EmployeeBean" view type="local"
*
*/
public class HRSystemBean implements SessionBean {
Note that the two little lines of tag code generate the following ejb local ref tag listings.
...
HRSystem
...
ejb/DeptBean
Entity
ejb.DeptHome
ejb.Dept
DeptBean
ejb/EmployeeBean
Entity
ejb.EmployeeHome
ejb.Employee
EmployeeBean
...
Two lines of XDoclet tags corresponds to 15 lines of XML in the deployment descriptor,
and when or if you refactor the included classes the deployment descriptor stays in
sync. This is highly significant.
XDoclet and EJB technology: Using the XDoclet Ant
task ejbdoclet
Now that you define all of your beans, you need to modify your Ant build script to use
the XDoclet JavaDoc tags to generate the dependent files as follows:
Page 44 of 49
Enhance J2EE component reuse with XDoclets
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved