These include the usertransaction object, various types of resource factories, EJBs, and so on.
这些包括usertransaction对象、各种类型的资源工厂、EJB等等。
The code in Listing 5 shows how this is done by using a UserTransaction.
清单5中的代码显示了如何通过使用UserTransaction来做到这一点。
The EJB component starts a transaction using the UserTransaction interface provided by the JTA.
EJB组件通过使用JTA提供的接口 UserTransaction开始一个事务。
Bean-managed transactions are started and ended explicitly by a component using the UserTransaction class.
Bean管理的事务是由组件使用usertransaction类显式启动和结束的。
After the application has a reference to the UserTransaction object it may start the transaction, as shown in Listing 5.
当应用程序找到了UserTransaction对象后,就可以开始事务了,如清单5所示。
Directly Remove Sol demonstrates handling a transaction in the Web tier by obtaining a UserTransaction instance and using it within the Struts action.
DirectlyRemoveSol通过获得一个UserTransaction实例并且在Struts动作中使用它来演示在web层中处理一个事务。
For example, the UserTransaction can perform transaction demarcation and basic transaction manipulation, while the TransactionManager can perform context management.
例如,UserTransaction能够执行事务划分和基本的事务操作,而TransactionManager能够执行上下文管理。
For example, the UserTransaction can perform transaction demarcation and basic transaction manipulation, while the TransactionManager can perform context management.
例如,UserTransaction能够执行事务划分和基本的事务操作,而TransactionManager能够执行上下文管理。
应用推荐