In this case, you can use the declarative transaction model provided by Spring.
在这种情况下,您可以使用Spring提供的声明式事务模型。
The DAO may use Spring's declarative transaction demarcation as described above.
DAO可以使用上面描述的Spring声明式事务划分。
The method to include the above lines was annotated with a Spring 2.5 declarative transaction.
包含上述代码的方法加上了Spring 2.5声明式事务的注解。
Notice in Listing 1 the lack of transaction management (no programmatic or declarative transaction annotations or code).
注意清单1缺乏事务管理(没有编程序或声明式事务注释或代码)。
The declarative transaction Settings for the stateless session bean are done in the ejb deployment descriptor (ejb-jar.xml).
无状态会话Bean的声明式事务设置可以在ejb部署描述符(ejb - jar . xml)中完成。
Most of the transaction pitfalls discussed in this series' first article are associated with the Declarative transaction model.
本系列的第一篇文章所讨论的大多数事务陷阱都与Declarative Transaction模型相关。
For declarative transaction demarcation, I use the standard Spring classes along with the transaction manager bean declared above.
为了声明事务划分,我与上述事务管理器bean声明一起使用标准spring类。
The container will not automatically roll back a transaction on a checked exception when you use the Declarative Transaction model.
在使用Declarative Transaction 模型时,容器将不会针对检测到的异常自动回滚事务。
Unlike the example in Listing 1, with declarative transaction demarcation there is no transaction management code in the component methods.
与清单1中的示例不同,由于有宣告式事务划分,这段组件代码中没有事务管理代码。
All the strategies can be used to perform declarative transaction demarcation either via embedded attributes or non-invasive XML configuration.
所有的事务策略都可以通过嵌入的特性或者非侵入性的XML配置来完成。
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.
在本文中,术语声明式事务描述的是一个事务模型,但它绝不是一种事务策略。
Spring enables declarative transaction management to be applied to any class (and attendant instances of that class), not merely special classes such as EJBs.
Spring的声明式事务管理可以被应用到任何类(以及那个类的实例)上,不仅仅是像EJB那样的特殊类。
If you don't use this annotation, the container assumes you are using declarative transaction management (container), which is the default transaction type for EJB 3.0.
如果您未使用此注释,则容器将假定您使用声明式事务管理(CONTAINER),它是EJB 3.0的默认事务类型。
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.
如果将Spring 2.5与WebSphereApplicationServerV6.0.2.19或V6.1.0.9或者更高版本一起使用,则可以利用对Spring的声明式事务模型的完全支持。
Use Enterprise Services declarative transactions for transactions that span multiple resource managers or where you need to flow transaction context across components.
对那些涉及多个资源管理器的事务,在事务上下文需要跨越多个部件时,可以采用企业服务的声明式事务来处理。
Because you cannot programmatically pass a transaction context, the API layer must use the declarative transaction model, meaning that the container manages the transaction.
由于您不能通过编程传递事务上下文,因此 API层必须使用声明式事务模型,这表示容器将管理事务。
Declarative transaction demarcation in Spring 2.5 or later are supported in WebSphere Application Server using the following declaration for the WebSphere transaction support.
Spring 2.5或更高版本中的声明式事务划分在WebSphereApplicationServer中受支持,它使用下面的声明提供对WebSphere事务的支持。
Declarative transaction demarcation lets you declare rules for the transactional behavior of the software, and have the transaction manager automatically carry out these rules.
声明式事务划分允许您为软件的事务行为声明规则,并让事务管理器自动执行这些规则。
Suppose you want to stick with using the Declarative transaction model to simplify the transaction processing but still increase throughput during a high-user-concurrency scenario.
假设您希望坚持使用Declarative Transaction模型来简化事务处理,但是仍然能在高用户并发性场景中增加吞吐量。
With the Spring AOP, any object managed by the Spring Framework can become aspect oriented, and this tutorial relies on the declarative transaction management services provided via the Spring AOP.
使用SpringAOP,任何受spring框架管理的对象都可变为面向方面的,并且本教程利用了通过Spring AOP提供的声明式事务管理服务。
Declarative transactions, such as those in EJB's are [a] sledge hammer approach to simplifying transaction management, assuming that every database operation behind the bean is of equal importance.
假设Bean后面的每个数据库操作都是同等重要的,那么声明性事务(就像EJB中的那些)就是一个简化事务管理的强有力的方法。
With the Spring AOP, any object managed by the Spring Framework can become aspect oriented, and this tutorial will rely on the declarative transaction management services provided by the Spring AOP.
使用SpringAOP,任何受spring框架管理的对象都可变为面向方面的,并且本教程利用了通过Spring AOP提供的声明式事务管理服务。
Notice that this annotation is at the class level (not the method level), indicating that you clearly cannot combine the Declarative and Programmatic transaction models in the same class.
注意,这个注释是类级的(而不是方法级的),这表示您不能在相同的类中结合Declarative和Programmatic事务模型。
The J2EE specification describes two models for transaction demarcation: programmatic and declarative. Table 1 breaks down the two models.
J2EE规范描述了两种事务界定的模型:编程序(programmatic)和声明式(declarative)。
There is no support for declarative method-level transaction in POJOs.
POJOs中将不在支持方法级别事务声明(declarative method-level transaction)。
There is no support for declarative method-level transaction in POJOs.
POJOs中将不在支持方法级别事务声明(declarative method-level transaction)。
应用推荐