What I am getting here is, using these, say @EJB, annotation at class level, we are creating one entry in the ENC of the containing bean & to map actual bean(instance) with this entry, we may directly link it by referring to another JNDI entry or by pointing to that
EJB. Which can be done either by using "beanInterface" element in @EJB or by specifying <ejb-link> element in DD. Is this understanding correct?
One more thing I want to know is,
1. Is there any advantage of using this(class level) approach over DD?
2. What could be the consequences of using annotations at class level over using <ejb-ref>/<resource-ref> entries in the DD & vice-versa.
Thanks & Regards,
Vishal S Shukla (SCJP 93%, SCWCD 94%, SCBCD 100%)