Look at the spec, specifically the <ejb-ref> tag, as well as the description
of deployment in Chapter 16. Your session bean should have a hard-coded jndi
name. Nothing wrong with that.

What's cool about the spec, if the deployer can choose to give different
names to beans. The <ejb-ref> tag provides an <ejb-link> attribute to point
to the "real" bean.

jim

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sridhar Vasudevan
> Sent: Tuesday, February 29, 2000 12:27 PM
> To: [EMAIL PROTECTED]
> Subject: Locating Entity Beans from a session bean
>
>
> Sorry newbie here.
> I have a session bean which updates a set of entity beans. In order to do
> that I need the beanHomeName of the Entity beans to obtain their initial
> context.
> One way of obtaining the beanHomeName of the entity beans would be :
>  To specify them as environment properties in the deployment descriptor of
> the session bean and read from there.
>
> But this would require that the deployer maintain consistency in
> specifying
> the beanHomeNames while deploying the various entity beans and the session
> bean.
>
> Is there anyway I can find out the beanHomeNames of the Entity beans which
> are in the container directly?
>
> Thanks in advance,
> Sridhar
>
> "A distributed computing system is one in which your machine can
> be rendered
> unusable by the failure of some other machine                         you
> didn't even know existed"
>                                                            -Leslie Lamport
>
> Sridhar Vasudevan
> Concurrent Engineering Research Center WVU
> 886, Chestnut Ridge Road
> Morgantown WV 26506
>
> ==================================================================
> =========
> 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".

Reply via email to