Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdocpath"
/>
ejbspec="2.0"
mergeDir="${src}"
destDir="${gen.src}"
>
destdir="META INF"
destinationFile="ejb jar.xml"
validatexml="true" />
destdir="${WEBINF}"
destinationFile="cmp xdoclet.ejb"
validatexml="true" />
The above ant script defines the
ejbdoclet
task with
taskdef
task. It then uses the
ejbdoclet
task to generate all manners of support files. It uses the nested fileset to
select the source that XDoclet will use in this case all classes ending with Bean. It then
uses the following subtasks:
localinterface
,
localhomeinterface
,
remoteinterface
,
homeinterface
and
entitypk
to generate the following local
interfaces, local homes, remote interface, remote homes and primary key classes
respectively (This example does not have primary key classes as the entities use
simple one field keys).
Enhance J2EE component reuse with XDoclets
Page 45 of 49
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