About Question enthuware.oce-ejbd.v6.2.503 :
Moderator: admin
-
- Posts: 3
- Joined: Mon Dec 03, 2012 8:34 pm
- Contact:
About Question enthuware.oce-ejbd.v6.2.503 :
When ejb-link is supplied is it mandatory to use beanName attribute on EJB annotation?
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.503 :
the explanation says that If all the beans are in the same module, <ejb-link> is not required . but this is not true. . what if you are injecting a local business interface(MyLocal) of a bean2(ejb-name) in bean1 and MyLocal is implemented by more than 1 bean ? in this case how will you resolve the conflict ? either you use <ejb-link> element to specify the ejb-name or you use <lookup-name> but not both.
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.503 :
Of course, if there is an ambiguity then you need it but it is not required otherwise.
HTH,
Paul.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 14 guests