在这种情况下,您可以使用Spring提供的声明式事务模型。
In this case, you can use the declarative transaction model provided by Spring.
由于您不能通过编程传递事务上下文,因此 API层必须使用声明式事务模型,这表示容器将管理事务。
Because you cannot programmatically pass a transaction context, the API layer must use the declarative transaction model, meaning that the container manages the transaction.
如果将Spring 2.5与WebSphereApplicationServerV6.0.2.19或V6.1.0.9或者更高版本一起使用,则可以利用对Spring的声明式事务模型的完全支持。
If you use Spring 2.5 with WebSphere Application Server V6.0.2.19 or V6.1.0.9 or later, you can take advantage of full support for Spring's declarative transaction model.
J2EE规范描述了两种事务界定的模型:编程序(programmatic)和声明式(declarative)。
The J2EE specification describes two models for transaction demarcation: programmatic and declarative. Table 1 breaks down the two models.
在本文中,术语声明式事务描述的是一个事务模型,但它绝不是一种事务策略。
But as you will see in this article, the term declarative transactions describes a transaction model, but by no means is it a transaction strategy.
在本文中,术语声明式事务描述的是一个事务模型,但它绝不是一种事务策略。
But as you will see in this article, the term declarative transactions describes a transaction model, but by no means is it a transaction strategy.
应用推荐