Giter Club home page Giter Club logo

Comments (2)

liuyangming avatar liuyangming commented on August 22, 2024

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.

wujun8 avatar wujun8 commented on August 22, 2024

THX

from bytejta.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.