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

How to configure shardingsphere to support BASE transaction model with Seata? #31667

Closed
bobbyz007 opened this issue Jun 12, 2024 · 5 comments
Closed

Comments

@bobbyz007
Copy link

Question

There's no official sample of this kind, I have configured the following but can't rollback, so could anyone provide a sample? thx.
shardingsphere: 5.5.0
seata: 2.1.0

...
transaction:
  defaultType: BASE
  providerType: Seata

#打印sql
props:
  sql-show: true
@TherChenYang
Copy link
Collaborator

@bobbyz007 Thank you very much for your feedback.There is an 'examples' module in the project. All you need to do is clone the project and run the main method in ExampleGeneratorMain from shardingsphere-jdbc-example-generator. This will generate application examples for all modules in the target directory.

May refer to Updates and FAQ — Your 1 Minute Quick Start Guide to ShardingSphere

@chengchen901
Copy link

Using your blog link above, I cloned the project from the documentation and generated the example of running seata, but the running example did not use the transaction example

@bobbyz007
Copy link
Author

bobbyz007 commented Jun 17, 2024

@bobbyz007 Thank you very much for your feedback.There is an 'examples' module in the project. All you need to do is clone the project and run the main method in ExampleGeneratorMain from shardingsphere-jdbc-example-generator. This will generate application examples for all modules in the target directory.

May refer to Updates and FAQ — Your 1 Minute Quick Start Guide to ShardingSphere

Hi @TherChenYang , actually I have used the ExampleGeneratorMain class provided by this repo to generate the BASE SEATA transaction sample, but unfortunately in the generated config.yaml file There's nothing configuration related to transaction, can you guys help to have a look?
Furthermore, I have uploaded my own sample to this repo 'seata-sample', looking forward to your suggestions, thx.

@TherChenYang
Copy link
Collaborator

@bobbyz007 Ok, I will check this issue.

Copy link

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants