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

Add Reactive TX Manager support #3201

Merged
merged 3 commits into from
Mar 3, 2020

Conversation

artembilan
Copy link
Member

  • Change TransactionInterceptorBuilder and TransactionHandleMessageAdvice to reply
    on a generic TransactionManager, so we can configure reactive one as well
  • Change a <transactional> XML element to support a generic TransactionManager reference,
    so we can configure reactive one as well
  • Support adviceChain configuration for the ReactiveMessageHandler in the ConsumerEndpointFactoryBean
  • Attemp to apply reactive transaction for the Reactive MongoDB channel adapter

@artembilan
Copy link
Member Author

The feature is ready, but I'd like to have a real test against reactive transaction.
Need consultation with Spring Data team to understand what else has to be provided for test configuration.

Thanks

@artembilan artembilan changed the title [DO NOT MERGE YET] Add Reactive TX Manager support Add Reactive TX Manager support Mar 3, 2020
@artembilan
Copy link
Member Author

I decided to go ahead without testing MongoDB reactive transaction. The support is too involved: we need the latest MongoDB server with replica enabled. Plus we need include the replica key from the server into a connection string.
Essentially it is not this project responsibility to have such a hard integration testing.

@garyrussell
Copy link
Contributor

Sorry hit single comment instead of start review; still reviewing.

* Change `TransactionInterceptorBuilder` and `TransactionHandleMessageAdvice` to reply
on a generic `TransactionManager`, so we can configure reactive one as well
* Change a `<transactional>` XML element to support a generic `TransactionManager` reference,
so we can configure reactive one as well
* Support `adviceChain` configuration for the `ReactiveMessageHandler` in the `ConsumerEndpointFactoryBean`
* Attemp to apply reactive transaction for the Reactive MongoDB channel adapter
to support transactions we need the latest MongoDb server with replica enabled
* Document reactive transactions
@garyrussell garyrussell merged commit 45a91b2 into spring-projects:master Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants