0 Replies Latest reply on Feb 8, 2003 10:49 AM by safeivy

    pls,Some basic question about <ejb-ref>.

    safeivy

      Hi:
      I have been puzzled by the <ejb-ref>.
      Suppose that I want to use session bean A to call CMP bean B.

      1. As I have specified in bean A to how to lookup bean B from jndi, So I can access bean B later. why I have to add line for EJB References, and insert Reference name?
      2. Does there have any association between jndi name and reference name?
      3. As I have specified in bean A which interface of bean B should be called. But, why I should specify home interface and remote interface of bean B again in deployment section of <ejb-ref> ?

      <ejb-ref>
      <ejb-ref-name>ejb/beanB</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      test.beanBHome
      test.beanB
      <ejb-link>Interest</ejb-link>
      </ejb-ref>



      Very Thanks!
      IVY