Page 1 of 1
About Question enthuware.oce-ejbd.v6.2.503 :
Posted: Tue Dec 04, 2012 5:48 pm
by ravasconcelos
When ejb-link is supplied is it mandatory to use beanName attribute on EJB annotation?
Re: About Question enthuware.oce-ejbd.v6.2.503 :
Posted: Thu Jul 18, 2013 8:39 am
by gurpreet_asrgndu
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.
Re: About Question enthuware.oce-ejbd.v6.2.503 :
Posted: Sat Jul 20, 2013 12:56 pm
by admin
Of course, if there is an ambiguity then you need it but it is not required otherwise.
HTH,
Paul.