> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Timothy > O'Hara > Sent: 19. september 2002 20:32 > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] web:ejb-ref vs. ejb:ejb-ref > > > 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> >
I think this should have been xdt. -But that won't work either, since that's in a different jar file. What we need here is a way to include templates from a different jar file. Somwthing like: <XDtMerge:merge url="xdoclet-ejb-module.jar!xdoclet/modules/ejb/dd/resources/ejb-ref.xml"> </XDtMerge> -But I don't see how that would work either. -I mean we should also say where the jar file is located, and there is no way a template can know that (it depends on where you put it on disk). So the only solution I can think of is to copy that template file as part of the build of the web module. Ara, did you think about this? Can you elaborate? Aslak > 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 ------------------------------------------------------- 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
