If you use ejb-link, then both beans must be in the same .jar or the same
.ear.
It is not necessary to use ejb-link though.  Just map the reference
comp/env/ejb/MyBean to the jndi name for the referenced bean (MyBean?) using
jboss.xml.

"Hardy, Patrick, DDI - Garden City" wrote:

> Hello,
>
> I have a few quick questions.
>
> I have 3 separate beans: BeanA, BeanB and BeanC, all of which can be used
> within an application and also within other applications. What I would
like
> to do is lookup BeanB and BeanC from BeanA.
>
> I understand that I need to use ctx.lookup("java:comp/env/ejb/MyBean") to
> look up other beans, but in ejb-jar, when I specify <ejb-link></ejb-link>,
> do the other beans (B & C) *have* to be defined in the same descriptor?
> They're already defined in their own descriptors and deployed on the
server.
>
> Even if I *redefined* the beans in the ejb-jar for BeanA, would that mean
> the other beans would be redeployed when I deploy BeanA?
>
> What if the bean code is not available at the time of BeanA's deployment?
>
> Thanks.
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]





---------------------------------------------------------------------
This message (including any attachments) contains confidential, proprietary
or privileged information intended for a specific purpose and individual(s),
and is protected by law.  If you receive this message in error, please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender.  Any unauthorized disclosure,
copying or distribution of any part of this message, or the taking of any
unauthorized action based on it, is strictly prohibited.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to