Spring uses "transactionManager" although another one was specified
<p>I get following error when trying to use Spring transactions:</p>

<pre><code>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined: No matching PlatformTransactionManager bean found for qualifier 'transactionManager' - neither qualifier match nor bean name match!
</code></pre>

<p>Although I have specified another name. Here is code snippet:</p>

<pre><code>@EnableTransactionManagement
public class TransactionConfig {
...
    @Bean
    @Qualifier(value ="jpaTransactionManager")
public PlatformTransactionManager jpaTransactionManager(EntityManagerFactory emf) {
    JpaTransactionManager tm = new JpaTransactionManager();
    tm.setEntityManagerFactory(emf);
    tm.setDataSource(primaryDataSource());
    return tm;
}

    @Bean()
    @Qualifier(value="jtaTransactionManager")
    public JtaTransactionManager jtaTransactionManager(UserTransactionManager    atomikosTransactionManager) {
      ......
</code></pre>

<p>And I use it like this: </p>

<pre><code>@Transactional(transactionManager="jpaTransactionManager")
public class UserService {

public Iterable&lt;FVUser&gt; findWithQuery(Specification&lt;FVUser&gt; spec) {
    return repository.findAll(spec);
} 
</code></pre>

<p>Repository :</p>

<pre><code>@Repository
public interface UserRepository extends PagingAndSortingRepository&lt;FVUser, String&gt;, JpaSpecificationExecutor&lt;FVUser&gt;  {
</code></pre>

<p>When debugging I noticed that it correctly uses "jpaTransactionManger" to call service method, but seems to look for a "transactionManager" to call the repository method, although no transaction is specified for it.</p>

<p>Anyone know why Spring is looking for default "transactionManager"  bean in this case?</p>

<p>Thanks.</p>