This content has been marked as final.
Show 4 replies
-
1. Re: @EJB inside EJB Session
wolfc May 15, 2007 8:28 AM (in response to jmp)Yes, it works. Check for example the stateless unit test.
@Stateless @SecurityDomain("other") @Remote(AnonymousStateless.class) public class AnonymousStatelessBean implements AnonymousStateless { private static final Logger log = Logger.getLogger(AnonymousStatelessBean.class); @EJB CheckedStateless stateless; public int method(int i) throws NamingException { return stateless.method(i); } }
-
2. Re: @EJB inside EJB Session
jmp May 16, 2007 3:46 AM (in response to jmp)Thank you for your reply wolfc.
I have tried but i have always the same error at deployment :Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container TestDAO: reference class: daosession.VerifJaguarHibernateEJB3DAO ejbLink: not used by any EJBs
TestDAO is an EJB which calls VerifJaguarHibernateEJB3DAO.
If you have an idea, i will be very delighted.
Regards, -
3. Re: @EJB inside EJB Session
wolfc May 16, 2007 5:17 AM (in response to jmp)Is the VerifJahuarHibernateEJB3DAO bean properly deployed within either the same jar or the same ear?
-
4. Re: @EJB inside EJB Session
bruhn Jun 13, 2007 8:18 AM (in response to jmp)Could it be that daosession.VerifJaguarHibernateEJB3DAO is an interface and you have not deployed the implementation of this interface as well inside this deployment unit?
Peter