Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation example to configure Reactive Transactional Support #4190

Closed
rajadilipkolli opened this issue Oct 1, 2022 · 1 comment
Assignees
Labels
type: documentation A documentation update

Comments

@rajadilipkolli
Copy link

The example provided here is outdated and it should be updated. If someone can point to the github location I can raise a PR as well.

Example should be as below

@Configuration
public class Configuration extends AbstractReactiveMongoConfiguration {

    @Value("${spring.data.mongodb.database}")
    private String databaseName;

    @Bean
    ReactiveMongoTransactionManager transactionManager(ReactiveMongoDatabaseFactory factory) {
        return new ReactiveMongoTransactionManager(factory);
    }

    @Override
    protected String getDatabaseName() {
        return this.databaseName;
    }
}
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 1, 2022
@christophstrobl christophstrobl self-assigned this Oct 4, 2022
@christophstrobl christophstrobl added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 4, 2022
@christophstrobl
Copy link
Member

good catch - thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants