title: Spring injected resource is always null
body: <p><strong>ISSUE:</strong></p>
  
  <p>I am trying to inject a service into a bean but the service instance is always null. </p>
  
  <p><strong>BACKGROUND:</strong></p>
  
  <p>I have two beans one called from the other. This is how they are defined in XML config:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;context:annotation-config /&gt;
  &lt;bean class="com.test.MyBeanImpl" name="myBean"/&gt;
  &lt;bean id="myService" class="com.test.MyServiceImpl" /&gt;
  </code></pre>
  
  <p>and the beans are implemented like so:</p>
  
  <p><strong>MyServiceImpl.java</strong></p>
  
  <pre><code>class MyServiceImpl implements MyService {
      public void getString() {
          return "Hello World";
      }
  } 
  </code></pre>
  
  <p><strong>MyBeanImpl.java</strong></p>
  
  <pre><code>@Component
  class MyBeanImpl implements MyBean, SomeOtherBean1, SomeOtherBean2 {
      @Resource(name="myBean")
      private MyService myService;
  
      public MyBeanImpl() {}
  }
  </code></pre>
  
  <p><strong>QUESTIONS:</strong></p>
  
  <p>Is there some reason related to the fact that my bean implements 3 interfaces that is preventing the Service being injected? If not what other factors could be effecting it?</p>