I have a Session bean that access several entity beans and other session beans. In my ejb-jar.xml file, I havent declared all the necessary ejb-ref tags and still my application works.
Ive tried it on jboss(3.0) and websphere (4.0.1).
Are the ejb-ref tags really necessary?
So that the JNDI name of a bean can be changed during deployment without needing access to the bean source code.
Apart from the JNDI names all reference tags give you the opportunity to map requested to physically available references, which is an important feature to implement reusable components.
PS: But I did not say that I like the J2EE component model in general ;)
I have also done the same thing of not using <ejb-ref> tag for Session Beans on JBoss 3.0 and it works fine.