...了简化这个实现,我们假定会话 bean、容器管理的实体 bean(CMP)和 MDB 都归为容器管理的事务(Container-managed transaction,CMT)。它们的事务属性被设置为 Required,这意味着容器必须在事务上下文中调用方法。
基于8个网页-相关网页
漫游 Web 服务原子事务操作 CommitTransaction Return 虽然另一个指定所需事务的方法是使用 J2EE 的容器管理事务(Container Managed Transactions,CMT),但是现在我们使用了清单 1 中的代码,因为它清楚且容易匹配 Waldo 的简单事务。使用 J2EE
基于1个网页-相关网页
Container Managed Transaction Demarcation 容器托管事务界定 ; 而对容器托管事务界定
The most common container-managed transaction attribute is Required.
最常用的容器管理的事务属性是Required。
In the case of J2EE container-managed transactions, the container takes responsibility for determining transaction bounds.
在J2EE容器管理事务的情况下,容器的职责是确定事务范围。
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。
应用推荐