users@glassfish.java.net

Re: Getting one EJB within another EJB

From: Thorsten Jungblut <ulli_at_netcorner.org>
Date: Tue, 5 Jun 2007 21:04:55 +0200 (CEST)

Hi,

> @EJB(beanName="SomeBean1")
> private SomeInterface someBean;
>
> or
>
> @EJB(beanName="SomeBean2")
> private SomeInterface someBean;

Thank you very much for your answer, but it doesn't solve my problem.
The problem is that i want do decide at runtime what bean to use. So using
an @EJB annotation is useless in this case i guess.

Is there another way to get an EJB e.g. by using JNDI?

Best regards
T. Jungblut