title: SpringMVC, MessageListener and Injection
body: <p>Is there anyway to inject services in MessageListener? </p>
  
  <pre><code>  @Autowired
    @Qualifier("myServices")
  
    MyServices myServices;
  
    @Override
    public void onMessage(final Message message, final byte[] pattern) {
      myServices.call(); 
  }
  </code></pre>
  
  <p>This way not inject service. That's because in @Configuration we do</p>
  
  <pre><code>    @Bean
  MessageListenerAdapter messageListener() {
      return new MessageListenerAdapter( new RedisMessageListener() );
  }
  </code></pre>
  
  <p>Any idea? </p>
  
  <p>Thanks</p>