This content has been marked as final.
Show 4 replies
-
1. Re: Problem with jndi lookups for a local bean with interfac
heinrich Mar 10, 2006 1:57 AM (in response to mrhightech)Hi Daniel,
why don't you use the dependency injection for local interfaces?@EJB CustomerDAOLocal customerLocal;
-
2. Re: Problem with jndi lookups for a local bean with interfac
mrhightech Mar 10, 2006 9:53 AM (in response to mrhightech)This is pretty obvious. Somehow(!) I thought I had to do a lookup. I never realized I could just inject the reference. EJB3 is great.
Thanks for the suggestion. -
3. Re: Problem with jndi lookups for a local bean with interfac
mrhightech Mar 13, 2006 11:48 AM (in response to mrhightech)Well... the suggestion was good, obviously.
But I DO have a need to lookup the bean directly.
Can anyone tell me what is the proper lookup using the classes described above ?
Thanks again -
4. Re: Problem with jndi lookups for a local bean with interfac
mrhightech Mar 13, 2006 1:30 PM (in response to mrhightech)As a further precision, the lookup I am trying to do is within a stateless bean that is accessed remotely.
client ----> access bean (remote) -----> DAO (local)
Would that change anything ?
BTW, I DO see the CustomerDAO bean deployed with (local) in the JNDI bound beans list.
Thanks!