再次提交事务和发出SQL查询。
清单2将显示如何启动、执行和提交事务。
Listing 2 shows how to start, execute, and commit a transaction.
然后提交事务,取消绑定持久化上下文并关闭它。
It will then commit the transaction, unbind the persistence context, and close it.
使用者流程需要提交事务(代表图8中的订单)。
A consumer process needs to submit a transaction (representing an order in Figure 8).
如果成功接收到了所有消息,则必须记得提交事务。
If we did successfully receive all of the messages, then we must remember to commit the transaction.
这意味着在提交事务之前,其他用户不能看到更改。
This means that no changes are seen by other users until the transaction has been committed.
用户将这个必需的数据项加入进来,然后重新提交事务。
User adds the required data item and resubmits the transaction.
该应用程序必须到HTTP请求的生命周期末提交事务。
Such applications have to commit the transaction by the end of the lifetime of the HTTP request.
当应用程序不经常提交事务时,代理会被一直占用。
When the application doesn't commit transactions often, then agents are held up.
如果所有的东西都运行正常,我们将在关闭会话以前提交事务。
If everything goes well, we will commit the transaction before closing the session.
同样,在传递了消息之后,必须提交事务,这可能涉及调用多个资源。
Similarly, after the message has been delivered, the transaction must be committed, which may involve calls to multiple resources.
WS - AT是两阶段提交事务,仅适合于微型事务(短期运行)。
WS-AT is a two-phase commit transaction and is suitable only for micro transactions (short running).
换句话说,当客户端提交事务时组件更新的资源同时被提交。
In other words, resources updated by the component are committed when the client commits the transaction.
获得实例后,它被用于启动和提交事务,如果发生任何错误,事务将回滚。
After it's acquired, it's used to start and commit a transaction, and if there are any errors, the transaction is rolled back.
用户准备好提交事务,但其中没有该数据项(模式中没有指出这一项是必需的)。
User prepares and submits a transaction without the data item (the schema doesn’t state that the item is required).
如果您的应用程序在同一个操作中需要访问多种资源,您就要使用两阶段提交事务。
If your application needs to access multiple resources as part of the same operation, you need two-phase commit transactions.
在同步模式下,只有接收到来自hdr备用服务器的确认,主服务器才会提交事务。
In synchronous mode, transactions on the primary server will not commit until it receives an acknowledgement from the HDR secondary server.
当准备好提交事务时,两阶段提交协议将由调用方的WS - AT协调器进行驱动。
The two-phase commit protocol is driven by the caller's WS-AT coordinator when it is ready to commit the transaction.
第二个应用程序(App2)正在更新帐户0015的帐户余额,但是尚未提交事务。
The second application (app 2) is updating the account balance for account 0015, but has not yet committed the transaction.
例如,父包运行辅助包,并根据辅助包的成功或失败来提交事务或回滚事务。
For example, the parent package runs the accessory packages, and based on the success or failure of the accessory packages, the parent package either commits or rolls back the transaction.
这种日志记录方法确保了所有已提交事务的数据一致性,这样就可以执行应急恢复。
This method of logging ensures data consistency for all committed transactions so that crash recovery is possible.
由于ObjectGrid只支持单阶段提交事务,因此任何更新都只能在单个分区内执行。
Because ObjectGrid only supports single-phase commit transactions, any update can only be performed in a single partition.
如果成功接收了整个消息组,则方法将完成,容器将提交事务,从而从目的地中删除这些消息。
If the entire message group is received successfully, then the method completes and the container commits the transaction, thereby removing the messages from the destination.
每当应用程序提交事务时,脏页被直接写到 PowerHApureScale服务器。
Whenever an application commits a transaction, dirty pages are written directly into the PowerHA pureScale server.
如果未捕获此异常,则缺省操作是提交事务(包括CICS执行的所有工作),直到异常终止点。
If this exception is left uncaught, the default action will be to commit the transaction, including all work performed by CICS, up to the point of the abend.
当事务广泛地分布在也许能或也许不能参与标准的、两阶段提交事务的商业伙伴系统时是尤其正确的。
This is particularly true when transactions are widely distributed to business partner systems that may or may not be capable of participating in a standard, two-phase commit transaction.
CICSECIXA资源适配器——此资源适配器实现XA事务支持,而且完全支持全局两阶段提交事务。
CICS ECI XA resource adapter — This resource adapter implements XA transaction support, and has full support for global two-phase commit transactions.
执行了所有更新之后,您可以调用commit方法来提交事务,或者调用rollback方法来回滚事务。
Once all the updates are performed you can invoke the commit method to commit the transaction, or the rollback method to roll back the transaction. Listing 5 illustrates this technique.
在5分钟的提交事务时间之后,次要节点将从暂存目录LOG_STAGING_DIR读取事务,然后应用它们。
After 5 minutes of commit transaction time, the secondary node will read the transactions from the staging directory LOG_STAGING_DIR and apply them.
在一些事务管理器中,由于旧的处理导致错误后,poe会进行重启,然后建立一个新的连接,并且重新提交事务。
In some transaction managers, the PoE is restarted after the error due to stale handles, after which a new connection is established and transaction is resubmitted.
应用推荐