Originally posted by meka toka:
Hi,
EJB references are used in the ejb-jar.xml so that you can get a default initial context to lookup the bean, when both the caller and the callee beans are exiting on the same JVM.
Regards
Meka Toka
This also allows you to abstract the name used in a beans code to look up another bean from the JNDI name with which that bean is deployed. You simply map the names via the EJB reference.
Cheers
Sam
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>