The code in Listing 5 shows how this is done by using a UserTransaction.
清单5中的代码显示了如何通过使用UserTransaction来做到这一点。
These include the usertransaction object, various types of resource factories, EJBs, and so on.
这些包括usertransaction对象、各种类型的资源工厂、EJB等等。
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层中处理一个事务。
The jta.UserTransaction property configures the factory class to obtain an instance of a UserTransaction object instance from the WebSphere container.
UserTransaction属性将工厂类配置为从WebSphere容器获取UserTransaction对象实例的实例。
For example, the UserTransaction can perform transaction demarcation and basic transaction manipulation, while the TransactionManager can perform context management.
例如,UserTransaction能够执行事务划分和基本的事务操作,而TransactionManager能够执行上下文管理。
The Web Service performs work to an XA-compliant database (Step 3) and then returns back to the EJB component (Step 4) which commits the transaction, again using the UserTransaction interface.
Web服务对XA -compliant database执行工作(步骤3),然后返回到EJ b组件(步骤4),由它再次使用UserTransaction接口来提交事务。
The Web Service performs work to an XA-compliant database (Step 3) and then returns back to the EJB component (Step 4) which commits the transaction, again using the UserTransaction interface.
Web服务对XA -compliant database执行工作(步骤3),然后返回到EJ b组件(步骤4),由它再次使用UserTransaction接口来提交事务。
应用推荐