I’m trying to enable transaction for LDAP repositories. I found this https://docs.spring.io/spring-ldap/reference/transaction-support.html documentation, but it only describes how to enable it with a beans.xml file. In spring boot you usually don’t have that and I can’t figure out how to do this programmatically in a @Configuration annotated class.
Just in case you ask: No it doesn’t seem to be enabled by default. When I debug my @Transactional annotated method, transactions in general seem to be working (you know TransactionInterceptor, CGLib and all that in use), but I think this only handles Jpa repositories by default. My method just consists of a repo.save method and a hard coded RuntimeException. But still the expected rollback doesn’t happen.