-
1. Re: Cant get xdoclet to include create or getter method in i
darranl Nov 11, 2004 3:50 AM (in response to sunofra)Can you also post an extract from your build.xml showing where XDcolet is invoked.
-
2. Re: Cant get xdoclet to include create or getter method in i
sunofra Nov 11, 2004 10:23 AM (in response to sunofra)My pleasure. Here is the target which builds the "generated source" ... i.e., the remote, remotehome, local, and localhome interfaces.
<target name="gensource">
<delete dir="${gensrc}" />
<mkdir dir="${gensrc}" />
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd" />
</tstamp>
<ejbdoclet
destdir="${gensrc}"
addedtags="@xdoclet-generated at ${TODAY}"
ejbspec="2.0" >
<fileset dir="${src}">
<include name="**/*Bean.java"/>
</fileset>
<remoteinterface/>
<homeinterface />
<localinterface/>
<localhomeinterface/>
</ejbdoclet>
</target>
Whats killing me is that the interface classes are generated, but they are "empty". They dont contain the create method, nor the getter/setter methods. Furthermore, I have a Stateless Session bean right along side this class for which xdoclet generates everything correctly. Again, I must be doing something really dumb. Its very likely as I am new to j2ee programming.
Thank You so much for taking a look at this. -
3. Re: Cant get xdoclet to include create or getter method in i
sunofra Nov 11, 2004 10:27 AM (in response to sunofra)Hmmmmm. Im not sure my tags came out looking like that but hopefully you can still see that clearly. :-(
-
4. Re: Cant get xdoclet to include create or getter method in i
sunofra Nov 11, 2004 11:27 AM (in response to sunofra)A HA!
I figured it out ... and as I suspected, I'm an idiot.
If you notice the comments like this ...
/*
* @ejb.interface-method
*/
where they should be like this ...
/**
* @ejb.interface-method
*/
The difference is one little asterisk was missing!
:-)