Hi !
Is True.
Rickard �berg
<[EMAIL PROTECTED] Para: [EMAIL PROTECTED]
G> cc:
Enviado Por: A Assunto: Re: ejb-link in deployment
descriptor
mailing list for
Enterprise
JavaBeans
development
<EJB-INTEREST@jav
a.sun.com>
03/01/2001 07:56
Responder a A
mailing list for
Enterprise
JavaBeans
development
Hi!
Heiko Gottschling wrote:
> what's the use of the <ejb-link> element in the <ejb-ref> object of the
> deployment descriptor? What would happen if you would not provide this
tag
> when referencing a bean (after all it's optional)?
>
> And, why do you still have to specify the <home> and <remote> entries
when a
> <ejb-link> tag is present (these should be very obvious by following the
> link?)
What you're missing is that the deployment descriptor has a life-cycle.
First a Bean Developer adds the beans without knowing the context in
which they will be used. Thus, he can only use the <home> and <remote>
tags to specify "whatever bean this reference is linked to, this is what
that bean should look like". At this point no <ejb-link> tag is used.
Then, the Assembler takes a bunch of beans and package them into a
logical application. Part of his work is to resolve ejb-ref's. This is
done by looking at the <home> and <remote> tags and finding the
appropriate beans to resolve them into. The Assembler hence adds the
<ejb-link> element to the bean the ejb-ref should point to. When the
Assembler is done there are no ejb-ref elements without a ejb-link
child. So, now it is not optional although the DTD says it is. It is
still syntactically optional, but semantically it is required after this
step.
regards,
Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".