In the deployment descriptor do we need to specify the <ejb-ref> tag inorder for a EJB to talk to another EJB.Is this required only when the two ejb's have seperate DD's.If the two EJB's are defined in the same ejb-jar.xml then we wouldn't need the <ejb-ref> tag?Am I right?
Well the value of the <ejb-ref> tag corresponds to the ejb-name of a Bean.Isn't?
Well it's tightly coupled even then!!If the ejb-name of a bean
changes then you still have to change the ejb-ref??
The purpose of the ejb-ref tag shud have been I guess to be able to directly access the Home without going thru a lookup process.
With the JNDI
Name we can go ahead directly accessing the Bean's Home,without having to
specify <ejb-ref> blocks.
If the bean references 6-7 beans,the DD then becomes fairly complex and you still need to do the JNDI lookup for all the beans.That gives me the thinking why go for ejb-ref tags.