I've been using xdoclet for generating ejb descriptors and now I want to use
xdoclet for generating web descriptors as well. The issue I'm having is
that the web:ejb-ref tag makes me specify information (home interface, bean
class, etc.) that is already contained in the ejb that I want to reference.
My question is why doesn't the web:ejb-ref tag work the same way as the
ejb:ejb-ref tag? I'm using the latest (as of this morning) XDoclet from CVS.
I did some investigating into the source code and looked at the web_xml.xdt
template file. It contains the following comment in the area where the
web:ejb-ref tags are processed:
<XDtComment:comment>
This loop is here for the sake of BWC. It's deprecated, use ejb.ejb-ref
and ejb.ejb-external-ref.
</XDtComment:comment>
However, if I use ejb.ejb-ref tags in my file instead of web.ejb-ref tags, I
don't see any <ejb-ref> tags in the generated web.xml file. Another thing I
noticed in the web_xml.xdt file is the following line:
<XDtMerge:merge file="xdoclet/modules/ejb/dd/resources/ejb-ref.xml">
</XDtMerge>
This file doesn't exist in the source tree, but there is a file named
xdoclet/modules/ejb/dd/resources/ejb-ref.xdt in the source tree which
handles <ejb-ref> generation for ejbdoclet.
Am I correct in assuming that web:ejb-ref will be deprecated in favor of
ejb:ejb-ref? Will this change be made for the upcoming 2.0 release?
Thanks,
Tim
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user