Whenever an application has a single function that needs to access or update the data in multiple transactional resources, it should use a distributed transaction.
当应用程序有一个单独的功能需要访问或更新多个事务资源中的数据时,应该使用分布式事务。
This transaction demarcation strategy is especially valuable for applications that need to access multiple DAOs in a single transaction.
这种事务界定策略对于需要在一个事务中访问多个DAO的应用程序特别有用。
In Figure 1, we see a servlet and multiple EJB components access a database within the context of a single transaction.
在图1中,我们看到一个servlet和多个EJB组件在单个事务的上下文中访问一个数据库。
In Figure 1, we see a servlet and multiple EJB components access a database within the context of a single transaction.
在图1中,我们看到一个servlet和多个EJB组件在单个事务的上下文中访问一个数据库。
应用推荐