About Question enthuware.oce-ejbd.v6.2.503 :

Moderator: admin

Post Reply
ravasconcelos
Posts: 3
Joined: Mon Dec 03, 2012 8:34 pm
Contact:

About Question enthuware.oce-ejbd.v6.2.503 :

Post by ravasconcelos »

When ejb-link is supplied is it mandatory to use beanName attribute on EJB annotation?

gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.503 :

Post 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.

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.503 :

Post by admin »

Of course, if there is an ambiguity then you need it but it is not required otherwise.

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests