Krishnakumar,

The ejb-link entry defines if the ejb-local-ref refers to an EJB in the same archive 
(either the same JAR/EAR). If you partition your EJBs to reside within the same 
physical process, but in different modules (JARs or EARs), you'd need to provide 
additional information.

Regarding (b), I believe the spec authors have clarified this. And as to the 
difficulty of defining ejb references in every calling bean - this is a one-time 
development cost only; and a lot of tools can hide this aspect from you. Btw, you can 
note the use of ejb-local-ref tags in every example in the EJB spec, the J2EE 
blueprints, the CTS etc,.

-krish

----- Original Message -----
From: Krishnakumar N <[EMAIL PROTECTED]>
Date: Tuesday, March 4, 2003 7:45 am
Subject: Re: how not to look up local Ejbs

> Krish,
>
>   I do not understand the issue here completely. I am confused by
> a couple
> of things here.
>
>        (a) If references to local homes are to be obtained only
> by using
> <ejb-local-ref> elements in the ejb-jar.xml, then why is the <ejb-
> link>element optional in the DTD? Isn't that the only way to tell
> the ejb
> container the actual EJB reference to get hold of? I am assuming
> that the
> other information (<local> and <local-home>) are not sufficient
> for the
> container to pinpoint the ejb expected.
>
>        (b) While it may inefficient to bind local ejbs to the
> global jndi
> and looking them up, is it actually incorrect? For example, I have
> sessionbeans which may access dozens of local ejbs directly and
> may be another
> dozen local ejbs thru the plain java classes that it invokes. Now,
> to repeat
> this list of 20-odd references in each and every <session> bean
> definitionwill be difficult, especially in the beginning stages of
> the development.
> So, the question is, is the use of global JNDI tree for local ejbs
> expresslyprohibited by the spec?
>
> Cheers,
>

===========================================================================
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".

Reply via email to