On Fri, 2004-07-02 at 10:47, Pedro Salazar wrote:
> Greetings,
> 
> I reference an external EJB from my EJB. However, I just import the
> interfaces and I do a lookup for my home as "ejb/MyBean" in my code.
> 
> I didn't used any @ejb.ejb-external-ref to reference my external EJB and
> it works. So, what is the purpose of @ejb.ejb-external-ref tag?

@ejb.ejb-ref is for referencing other beans that are being processed by
XDoclet.  You'll notice that tag takes fewer parameters than
@ejb.ejb-external-ref; that's because XDoclet can look up any other
details it needs (home & remote interface classnames, EJB type, ...)
from the other bean.

@ejb.ejb-external-ref is for referencing beans that are external to the
jar/DD being generated (third party beans, ones that are part of a
separate build or EJB JAR, etc.)  In that case, since the referenced
bean's (XDoclet-tagged) source isn't in the fileset being processed by
XDoclet, it can't know what the various values are that need to go in
the deployment descriptor.  Consequently, these have to be supplied as
parameters of the @ejb.ejb-external-ref tag.


Andrew.



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to