The sence about Transaction in Spring
Some sence are strange in our project. I should make note.
Has following methods:
ClassA.methodA -- no tranaction
ClassA.methodB -- tranaction REQUIRES
ClassC.methodC -- tranaction REQUIRES
ClassC.methodD -- tranaction REQUIRES_NEW
1. When calls methodB from methodA. the tranaction doesn't work.
2When calls methodB from methodC the tranaction works.
3 When calls methodD from methodB the requires_new doesn't work. it doen't use the new tranaction.
4 the requires_new will create the new session. please make sure you need to use requires_new.
Are the sences above the same are you think?
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/118026/viewspace-1043073/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Talk about the naming of spring bean namesSpringBean
- Spring中事務管理org.springframework.transactionSpringFramework
- Spring @Transaction 註解是如何執行事務的?Spring
- About HTMLHTML
- about me
- Trivia about pythonPython
- About My Blog
- Narrative writing about a person
- 3.4.1 About Quiescing a DatabaseUIDatabase
- 2.3.3.1 About Application MaintenanceAPPAINaN
- 2.3.1 About Application ContainersAPPAI
- An example about git hookGitHook
- About the Oracle GoldenGate TrailOracleGoAI
- IDBObjectStore.transactionObject
- IDBDatabase.transaction()Database
- BTC的Transaction
- Notes about Vue Style GuideVueGUIIDE
- Something about seniority in the family or clan
- Some notes about patch workflows
- Some ideas About ‘invisible bug‘Idea
- DAPPER 事務 TRANSACTIONAPP
- indexedDB transaction 事務Index
- SAP Retail Transaction ListAI
- Boost UDP Transaction PerformanceUDPORM
- Transaction註解原理
- Tell Me About Yourself Example 1
- What you should know about JavaJava
- Something about 計算幾何
- Something about 樹鏈剖分
- some notes about distributed workflows in GitGit
- What is the N prefix in MSSQL all about?SQL
- SAP Workflow Tcodes ( Transaction Codes )
- Django處理事務:transactionDjango
- java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer; 報錯解決JavaErrorMyBatisSpring
- 用 MongoTemplate 操作 documentDB 與 用 Spring Data MongoDB 操作 documentDB 有什麼不同,write concern,transactionSpringMongoDB
- 將About加入系統選單
- about oracle10g rac(轉)Oracle
- coca搭配 on vs about 基於ngrams
- Solr Transaction Log(Tlog)的作用Solr