Perhaps you can find names of deployed beans using JNDI.
But again you won't know which are the beans you are interested.
The solution we have gone for is to maintain a single properties file for
the whole application.
It can contain all application-specific name-value pairs. You could easily
read it using PropertyResourceBundle.
-ashwath
----- Original Message -----
From: Sridhar Vasudevan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 29, 2000 10:56 PM
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".