![](https://csdnimg.cn/release/download_crawler_static/10029688/bg13.jpg)
■ Contents
xviii
■Chapter 10: Spring Transaction Management ��������������������������������������������������� 415
10-1. Avoid Problems with Transaction Management .................................................. 416
Manage Transactions with JDBC Commit and Rollback ..................................................................... 422
10-2. Choose a Transaction Manager Implementation ................................................. 423
Problem .............................................................................................................................................. 423
Solution...............................................................................................................................................423
How It Works ....................................................................................................................................... 423
10-3. Manage Transactions Programmatically with the Transaction Manager API ...... 424
Problem .............................................................................................................................................. 424
Solution...............................................................................................................................................425
How It Works ....................................................................................................................................... 425
10-4. Manage Transactions Programmatically with a Transaction Template ............... 427
Problem .............................................................................................................................................. 427
Solution...............................................................................................................................................427
How It Works ....................................................................................................................................... 427
10-5. Manage Transactions Declaratively with the @Transactional Annotation ........... 430
Problem .............................................................................................................................................. 430
Solution...............................................................................................................................................430
How It Works ....................................................................................................................................... 430
10-6. Set the Propagation Transaction Attribute .......................................................... 431
Problem .............................................................................................................................................. 431
Solution...............................................................................................................................................431
How It Works ....................................................................................................................................... 432
10-7. Set the Isolation Transaction Attribute ................................................................ 436
Problem .............................................................................................................................................. 436
Solution...............................................................................................................................................436
How It Works ....................................................................................................................................... 437
10-8. Set the Rollback Transaction Attribute ................................................................ 444
Problem .............................................................................................................................................. 444
Solution...............................................................................................................................................444
How It Works ....................................................................................................................................... 444