title: Spring 4 @PropertySource not working when ResourceBundleMessageSource bean is registered
body: <pre><code>@Configuration
  @PropertySource("classpath:service.properties")
  public class ApplicationConfig{
      @Value("PROPERTY_MYSQL_JNDI_NAME")
      private String jndiName;
  }
  </code></pre>
  
  <p>this was working fine. But when I register</p>
  
  <pre><code>@Bean
  public MessageSource messageSource() {
      ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
      messageSource.setBasenames("resources/authentication");
      messageSource.setDefaultEncoding("UTF-8");
      return messageSource;
  }
  </code></pre>
  
  <p>bean in the ApplicationConfig class previous property loading not working. is there any thing i can do to test it</p>