Listing 1. Transparent resource enlistment with bean-managed transactions.
清单1.bean管理的事务的透明资源征用。
It's impossible to overemphasize the importance of container-managed transactions.
对容器管理的事务怎么强调都不会过分。
EJB container-managed transactions work even when multiple EJBs collaborate to perform a task.
即使多个EJB合作执行任务时,ejb容器管理事务也可以工作。
As you can see, the MDB Bean type is message-driven, and the EJB USES container managed transactions.
可以看到,MDBBean类型是消息驱动的,并且EJB使用容器管理的事务。
The stub and skeleton objects also take care of beginning and committing container-managed transactions.
存根和骨架对象还负责开始和提交容器管理的事务。
Bean-managed transactions are started and ended explicitly by a component using the UserTransaction class.
Bean管理的事务是由组件使用usertransaction类显式启动和结束的。
This can happen for servlets, session beans using bean-managed transactions, and for a few other scenarios.
使用Bean 管理的事务的会话Bean和一些其他情况会发生这种现象。
In that case, it's possible to still have this code be usable, but participating in Spring managed transactions.
这时可以通过参与Spring管理事务让这些代码仍然有用。
Client managed transactions because a client failure can tie up database resources for longer than we can tolerate.
(例如在客户端控制的事务中,)一个客户端的失败会长久地阻塞数据库资源、超出我们的忍受程度。
In the case of J2EE container-managed transactions, the container takes responsibility for determining transaction bounds.
在J2EE容器管理事务的情况下,容器的职责是确定事务范围。
JobStoreCMT requires a (second) datasource that contains connections that will not be part of container-managed transactions.
JobStoreCMT要求(二)数据源包含连接,不会的一部分容器管理的事务。
If bean-managed transactions are employed, the developer will determine under what conditions a transaction should begin and end.
如果使用的是bean管理的事务,那么开发人员将确定事务的开始条件和结束条件。
This returns true if the MDB is using container-managed transactions and the method in question has a transaction attribute of Required.
如果MDB正在使用容器托管的事务,而且要处理的方法具有Required事务属性,那么isDeliveryTransacted会返回true。
If the transaction attribute takes the other allowed value of NotSupported, or the MDB is using bean-managed transactions, then it returns false.
如果事务属性采用NotSupported允许的其他值,或者MDB正在使用bean托管的事务,则返回false。
The EJB container provides full transactional support for global transactions, including container managed transactions (CMT) and bean managed transactions.
ejb容器提供对全局事务的充分的事务支持,包括容器管理事务(CMT)和Bean管理事务。
Suppose you take the EJB from Listing 1 and deploy it using container-managed transactions and a transactional attribute of RequiresNew for the business method.
假定取用清单1中的EJB,并用容器托管的事务部署它,将业务方法的事务属性设定为RequiresNew。
The EJB container provides full transactional support for global transactions, including container managed transactions (CMT) and bean managed transactions (BMT).
EJB容器提供对全局事务的完整事务支持,包括容器管理的事务 (CMT)和Bean 管理的事务 (BMT)。
This is the only configurable LTC setting for Web components (servlets), and applies to bean managed transactions using the LocalTransaction.begin method on a Connection.
该属性是We b组件(servlet)唯一能配置的ltc设定值,通过在连接上使用LocalTransaction. begin方法应用于bean管理事务。
This is the only configurable LTC setting for Web components (servlets), and applies to bean managed transactions using the LocalTransaction.begin method on a connection.
该属性是We b组件(Servlet)唯一可配置的LTC设置,通过在连接上使用LocalTransaction. begin方法应用于Bean管理的事务。
As entity beans must always use container-managed transactions, only session beans or message-driven beans with bean-managed transactions are allowed to invoke this method.
因为实体bean必须使用容器管理事务,所以只有使用bean管理事务的会话bean和消息驱动bean才能调用该方法。
Also, when you want to make connections to Encina and another XA compliant resource manager within a single transactional context, container-managed transactions must be used.
而且,当您想在单一事务环境下将Encina与另一xa相应的资源管理器相连接,那么就必须使用容器管理的事务。
All container managed transactions are auto-committed after the interaction completes, and so this attribute is not used by container managed transactions in the Web container.
在交互完成后,所有的容器管理事务被自动提交,因此在web容器中容器管理的事务不使用该属性。
The EJB container in WebSphere Application Server is ideally suited to the deployment of transactional components, and provides support for both container and bean managed transactions.
WebSphereApplicationServer 中的EJB容器完美地适合于事务组件的部署,并且提供对容器和bean管理事务两者的支持。
Using container-managed transactions (CMTs) provides two key advantages that are nearly impossible to obtain without container support: composable units of work, and robust transactional behavior.
使用容器管理的事务(CMT)提供了两个关键的优势(如果没有容器支持这几乎是不可能的):可组合的工作单元和健壮的事务行为。
This has interesting implications for the question of whether to use no transactions or read-only transactions in flow-managed persistence.
这对于在流管理的持久化中是不使用事务还是使用只读事务的问题产生了有趣的影响。
Likewise, multiple transactions can be opened and managed within a single business method.
同样,可以在一个业务方法中打开并管理多个事务。
This is a great advantage of using read-only transactions over non-transactional data access in flow-managed persistence.
这是在流管理持久化中使用只读事务优于使用非事务性数据访问的地方。
Local transactions (sometimes referred to as database transactions) are transactions that are managed by the database rather than the container environment.
本地事务(有时称为数据库事务)是由数据库而不是容器环境管理的事务。
Compared with flow-managed persistence in atomic flows, the most significant change happens to the scope of transactions: atomicity applies to each step of the process rather than the entire flow.
与原子流中流管理的持久化相比,事务作用域发生的最大变化时:原子性应用于进程的每一步而不是整个流。
An application running in a non-managed environment must explicitly commit or rollback transactions.
运行于非受管环境下的应用程序必须显式提交或回滚事务。
应用推荐