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 @Transaction 註解是如何執行事務的?Spring
- Spring_11 Transaction(事務) 使用(XML 配置方式)SpringXML
- Spring Transaction詳解 – 手動回滾事務Spring
- Spring中事務管理org.springframework.transactionSpringFramework
- About HTMLHTML
- About interviewView
- About Personality
- About IndexDBIndex
- about bapiAPI
- about me
- about datapump parallelParallel
- About Oracle WITH clauseOracle
- About Oracle LockOracle
- About post and get
- about histogram(2)Histogram
- about histogram(1)Histogram
- Activity Transaction
- oracle set transaction read only與dbms_transaction實現事務transaction控制Oracle
- An example about git hookGitHook
- About Oracle HanganalyzeOracle
- All About PythonPython
- os staroge:about stripe
- error log about AIXErrorAI
- About SAP currency type
- about raw device[zt]dev
- About My Blog
- Trivia about pythonPython
- Transaction簡介
- Database Transaction ProblemDatabase
- 3.4.1 About Quiescing a DatabaseUIDatabase
- 2.3.3.1 About Application MaintenanceAPPAINaN
- About the Oracle GoldenGate TrailOracleGoAI
- 04 - More about CSS PositionCSS
- about materialized view and long(turn)ZedView
- About. Compatibility
- About PicoContainer in JdonframeworkAIFramework
- About Static Data Dictionary ViewsView