A wise old hermit known only as =?iso-8859-1?Q?Aslak_Helles=F8y?= 
<[EMAIL PROTECTED]> once said:

> > 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).

If, indeed, you've put it anywhere on disk... One of the points to the 
modularisation is that you can leave out modules you're not using, so what 
if you're only creating a servlet-based web app and aren't using EJBs?  
Doing it this way means the web module will have a dependency on the ejb 
module - do we want that?

And if not, then why should the web module be using @ejb.ejb-ref (or 
@ejb.anything) tags rather than @web.ejb-ref, like we had before?  Even if 
we can avoid an actual dependency, the fact it uses those tags implies a 
dependency, which may confuse users...  Or maybe we should change both of 
them to use e.g. @j2ee.ejb-ref so that it's obviously not specific to 
either module?


Andrew.

> 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-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to