Comments (2)
LocalXADataSource并非ByteJTA根据具体数据源自动封装的,而是需要业务系统来封装,比如:
<bean id="doNotUseThisDataSourceDirectly" class="org.apache.commons.dbcp.BasicDataSource">
<!-- ...... -->
</bean>
<bean id="dataSource"
class="org.bytesoft.bytejta.supports.jdbc.LocalXADataSource">
<property name="dataSource" ref="doNotUseThisDataSourceDirectly" />
</bean>
如果需要设置隔离级别,可以考虑将业务需要配置的数据源封装在IsolationLevelDataSourceAdapter中之后,再设置到LocalXADataSource;
JtaTransactionManager.allowCustomIsolationLevels属性也可以直接在JtaTransactionManager的bean定义中设置。
以上两处调整,如果加在框架中,反而会限制了框架的适用场景,因此不倾向于添加。
ByteJTA/ByteTCC内置的配置只是方便新手使用。使用熟练、需要定制参数时,更推荐在此基础上自行配置。
from bytejta.
THX
from bytejta.
Related Issues (10)
- 你好, 这个框架还没有任何文档说明吗? HOT 2
- 如何不使用springboot配置 HOT 3
- 支持mysql 8.0嘛? HOT 2
- ByteJTA有设计文档吗? HOT 6
- Who is using ByteJTA?
- alibaba druid 的连接池配置示例有吗? HOT 3
- TransactionXid#branchQualifier 没有 set 到 TransactionContext HOT 1
- SpringCloudSupportConfiguration中引用org.bytesoft.bytejta.supports.springcloud.dbcp.CommonDBCPXADataSourceWrapper,dbcp整个包没有提交 HOT 1
- 是否考虑spring cloud 使用consul作为服务发现的支持 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytejta.