Tony,

I believe you can with the following
pseudo code:

----------Start p-code----------------------
Context jndiContext = new InitialContext();
NamingEnumeration ne = jndiContext.listBindings("");
while (ne.hasMore()) {
  Binding b = (Binding)ne.next();
  System.out.println("Name = " + b.getName());
}
----------End p-code-----------------------

if you want bindings under a name ... say objects
bound to "sub/ejbA" or "sub/ejbB" i.e. under the
"sub" binding, then change line 2 to
NamingEnumeration ne = jndiContext.listBindings("sub");

-krish

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tony K. Lawrence
> Sent: Wednesday, September 05, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: Listing deployed session beans
>
>
> I was wondering if it is possible in (for example a session bean) to
> list other deployed session beans.  If so would this be an app server
> independent thing?
>
> Thanks,
>
>     Tony
>
> ------------------------------------------------------------------------
> ---
> This e-mail is intended only for the above named addressee/s. This
> e-mail may be confidential or legally privileged. If you have received
> this e-mail and you are not a named addressee, please delete it from
> your system and contact the sender.
> ------------------------------------------------------------------------
> ---
>
> Tony K. Lawrence
> Future Internet Technologies
>
> Studio 3B
> 101 Farm Lane
> Fulham
> London
> SW6 1QJ
>
> Tel:  +44 (0) 20 7381 7800
> Fax: +44 (0) 20 7381 7801
>
> ===========================================================================
> 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