title: resource injection in ejb
body: <p>I don't understand the difference between <code>lookup</code> parameter and <code>name</code> parameter of the <code>@Resource</code> annotation. I read all the documentation about the annotation and its field etc.</p>
  
  <p>I know how <code>name</code> can be used to inject or bind a resource, but the problem is that did not find any example that explain the difference between <code>lookup</code> and <code>name</code>.</p>
  
  <p>Can anyone give me a such example or tell me the difference between them ?</p>