Declarative Transaction Demarcation
Alternatively, one can use Spring's AOP TransactionInterceptor, replacing the transaction demarcation code with an interceptor configuration in the application context. This allows to keep business objects free from repetitive transaction demarcation code in each business method. Furthermore, transaction semantics like propagation behavior and isolation level can be changed in a configuration file and do not affect the business object implementati
类别: J2ee 查看评论
本文介绍如何使用Spring的AOP TransactionInterceptor来替代业务方法中的事务边界代码。通过配置拦截器可以在不修改业务对象的情况下实现事务传播行为及隔离级别的调整。

被折叠的 条评论
为什么被折叠?



