title: EJB package import vs resource injection
body: <p>I'm new to EJB, and there's something about resource injection that has been bugging me for a while. I guess this is a pretty basic concept, but I couldn't figure it out on my own. And people say that there's no dumb question so here it goes:</p>
  
  <p>What I don't understand is the difference between Package Import and Resource Injection. The difference I refer is not about usage (they sure are used in different way), but about meaning. Why doesn't EJB use package import instead of resource injection?</p>
  
  <p>For example I have a <strong>getInfoBean</strong> that implements interface <strong>getInfo</strong>. To use this bean in a client, I can lookup in JNDI or DI with @EJB (if client's deployed in ACC). In either way, I need to specify the name getInfo. So while doesn't EJB let <strong>import</strong> handle this? Isn't the purpose of <strong>import</strong> is to specify some name so it can make the program aware of the class or interface that it'd like to use?</p>
  
  <p>Thanks</p>