title: What is the difference between name , beanName and mappedName attributes for annotation @EJB?
body: <p>What is the difference between <code>name</code>, <code>beanName</code> and <code>mappedName</code> attributes for annotation <code>@EJB</code> in EJB3.0?<br>
  I found this on net at following link -
  <a href="http://www.tutorialspoint.com/ejb/ejb_annotations.htm" rel="noreferrer">http://www.tutorialspoint.com/ejb/ejb_annotations.htm</a></p>
  
  <ul>
  <li><code>name</code> - Used to specify <em>name</em> which will be used to locate <em>the referenced bean</em> in environment. </li>
  <li><code>beanName</code> - Used to provide <em>name</em> of <em>the referenced bean</em>.  </li>
  <li><code>mappedName</code> - Used to specify <em>the JNDI name</em> of <em>the referenced bean</em>.  </li>
  </ul>
  
  <p>How do the <em>name</em> in <code>name</code> and <code>beanName</code> attribute differ ?</p>