Skip to content

Qualifier not working? #1

@benlwong

Description

@benlwong

I am not sure this is an issue but I ran out of ideas. This worked in Play! 1.0 and the Spring module, but it is erroring out in Play! 2.0 with the Spring4Play2 stuff. Basically, I have a service bean that is annotated with the following:

@Transactional(value = "ldap", propagation = Propagation.REQUIRES_NEW)

In my application-context.xml file, I have the following:

<tx:annotation-driven transaction-manager="transactionManager"/>

<bean id="transactionManager" class="org.springframework.ldap.transaction.compensating.manager.ContextSourceTransactionManager">
   <property name="contextSource"><ref bean="ldapContextSource"/></property>
   <qualifier type="org.springframework.transaction.annotation.Transactional" value="ldap"/>
</bean>

It is bombing out with the following message:

[IllegalStateException: No matching PlatformTransactionManager bean found for qualifier 'ldap' - neither qualifier match nor bean name match!]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions