When and where should you specify the transaction rollback directives?
您应该在何时何种情况下指定事务回滚指令?
Frees transactions if transaction rollback for other than an XA rollback.
如果是除xa回滚以外的其他事务回滚,则释放事务。
In the case of an error, the transaction logic can specify that the transaction rollback to a savepoint.
在发生错误的情况下,事务逻辑可以指定该事务回滚到某个保存点。
Transaction rollback and compensation transactions are two approaches aimed at solving this problem.
事务回滚和补偿事务是解决问题的两种方法。
Conversely, application exceptions under EJB 1.0 automatically caused a transaction rollback under certain circumstances.
反过来说,EJB 1.0下发生的应用程序异常在某种环境下会自动导致一个事务回滚。
This is because rollback can easily be confused with the transaction rollback and ABORT is more consistent with other utilities.
这是因为ROLLBACK很容易与事务回滚混淆,而ABORT则与其他实用程序更加一致。
When the execution is false, transaction compensation instead of the inefficient transaction rollback is used to remedy it.
当执行出错时,执行相应的补偿事务以修正执行的结果,从而避免低效的事务回滚。
The business process also has a snippet component, which you can use to raise a fault and to demonstrate a global transaction rollback.
业务流程也有一个代码段组件,您可以用它来引发一个故障并演示一个全局事务回滚。
Since the fault is not handled inside the BPEL process, it will result in the global transaction rollback, consequently undoing what the EmployeeRegistry Web service has done.
由于未在BPEL流程内处理错误,该错误会导致全局事务回滚,因此会撤销EmployeeRegistryWeb服务已执行的操作。
As you can see from Listing 4, if an exception is thrown in either of the update methods, it is the client layer method's responsibility to do the necessary transaction rollback.
从清单4中可以看到,如果任何一个更新方法抛出异常,则客户端层方法将负责执行必要的事务回滚。
Then we rollback this transaction.
然后我们回滚这个事务。
They abort and rollback the transaction if one or more participants failed in the prepare phase.
如果在准备阶段有一个或多个参与者失败,则终止或回滚该事务。
At the end of the transaction boundary (commit or rollback), the database agent is disassociated with the application.
在事务边界(提交或回滚)的末尾,数据库代理与应用程序分离。
One solution would be to have a small application that joins the open transaction branch within the engine that advises the engine to commit or rollback the open transaction.
一种解决方案是用一个小型应用程序连接引擎中打开的事务分支,并通知引擎提交或回滚这一打开的事务。
This lets you set, rollback, and release savepoints in a transaction.
它允许您在事务中设置、回滚和释放保存点。
If the end user is not authorized to invoke this service, an error is surfaced and the transaction is marked for rollback.
如果终端用户没有被授权调用这个服务,那么会遇到一个错误,事务被标记为回滚。
If she is not authorized, an error is raised and the transaction is marked for rollback.
如果她没有经过授权,那么出现一个错误,事务被标记为回滚。
If the receipt of one of the messages fails, we mark the global transaction for rollback and then sleep for 5 seconds.
如果接收其中的某个消息失败,我们会标记全局事务进行回滚,然后等候5秒。
Two-phase commit gives the transaction manager power to ensure that all resources that participate in a transaction commit or rollback together.
二阶段提交让事务管理者有能力确保所有参与事务的资源都一起提交或回滚。
The transaction time includes the time at which an application's statement activity begins until a commit or rollback implicitly or explicitly ends the transaction.
事务时间包括从应用程序的声明活动开始,直到一条提交或回滚命令隐式或显式地结束事务为止。
First, if a method did not start a transaction, it has no business managing that transaction (for example, marking it for rollback).
首先,如果某个方法没有启动事务,那么它就不需要管理事务(例如,将其标记为回滚)。
Unfortunately, the effect of this characteristic is that a lower-level method that isn't the transaction owner might perform a rollback on exception.
遗憾的是,此特性的效果是,作为非事务拥有者的较低级方法可以对异常执行回滚。
This feature enables applications to rollback a transaction to a predetermined marker.
该特性使应用程序能够将事务回滚到一个预先确定的标记。
Otherwise the transaction is going to be aborted by ROLLBACK.
否则,该事务就将被ROLLBACK中止。
Now retrieve the amount overdue from the account 12345, and rollback the transaction after doing so again, as shown in Listing 10.
现在从帐户12345检索过期时间量,然后再次回滚该事务,如清单10所示。
Why does the commit or rollback of a transaction close the result set?
为何事务的提交或回滚关闭结果集?
In the EJB implementation code, as a part of exception handling, set the transaction to Rollback, as shown in Figure 11.
在EJB实现代码中,作为异常处理的一部分将事务设置为Rollback,如图11所示。
You only need to specify the transaction attributes (no rollback code or rollback directives!)
您只需要指定事务属性(没有回滚代码或回滚指令!)
It then invokes commit or rollback for each transaction as appropriate.
然后根据情况为每个事务调用commit或rollback。
A transaction callback must be defined in the objectgrid.xml to receive transaction commit or rollback events and send it to the JPA layer.
在objectgrid.xml中必须定义事务的回调函数,这样就可以接收事务提交或回滚的事件,并将其发送到JPA层。
应用推荐