What makes this transaction important - and worthy of study - is that the deal is a window into the future.
是什么让这个交易变得如此的重要-值得研究的是,这一交易是未来的一个窗口。
This is an architected set of flows used to ensure all resource managers in a transaction can be reliably coordinated, irrespective of any failure.
这是流的体系结构集,用于确保无论发生什么故障,事务中的所有资源管理器都能够可靠地协作。
Since the target is created specifically to support those service requests, this pattern is a preferred approach for requirements of highly frequent transaction execution.
因为目标专门创建用于支持这些服务请求,所以对于高事务执行频率的需求,该模式是一种首选的方法。
The concept of a transaction is of essential importance in this context.
在这种上下文环境中,交易的概念就显得极其重要。
For transactions, this could mean that a service that is part of a transaction calls another service that is also part of the transaction.
对于事务,这可能意味着,作为事务一部分的服务可能调用了同是该事务一部分的另一个服务。
If a global transaction is present on invocation the component will be added to this global transaction scope.
如果在调用时存在一个全局事务,则该组件会被添加到该全局事务范围。
At transaction initiation, CICS implicitly starts a new task; this is the initial boundary of the transactional work to be undertaken.
在事务启动时,CICS将隐式启动一个新任务;这是承担事务工作的初始边界。
This intent defines a unit of work scope, within which the transaction is atomic.
此意图定义工作范围单位,在此范围内事务具有原子性。
This ensures that the read method is included in a transaction scope if it is invoked within that scope's context.
这将确保在作用域的上下文中调用读方法时,它将包含在事务作用域中。
Unfortunately, the effect of this characteristic is that a lower-level method that isn't the transaction owner might perform a rollback on exception.
遗憾的是,此特性的效果是,作为非事务拥有者的较低级方法可以对异常执行回滚。
As I said earlier, one of the biggest restrictions with this transaction strategy is that the client layer must be able to start a transaction and propagate it to the API layer.
如前所述,这种事务策略的最大一个限制就是,客户端层必须能够开始一个事务并将它传播给api层。
This will ensure that the read method is included in a transaction scope if it is invoked within that scope's context.
这将确保在一个事务范围的上下文内调用读方法时,该方法被包括在事务范围内。
When used, it specifies that this is meant to be a unique savepoint within the scope of the current transaction.
在使用时,它表示该保存点是当前事务范围内惟一的保存点。
If you issue a new query within this transaction, your new row is displayed, because your transaction holds the lock for the new row.
如果在此事务中发出一个新查询,将显示新行,因为事务持有新行的锁。
This qualifier determines whether the target service is capable of joining a client-propagated transaction.
此限定符决定是否目标服务能够加入一个客户端传播(client - propagated)事务。
This method returns nothing, but if a transaction is associated with the calling thread, the XAResource from the managed connection is enlisted at that point.
这个方法不返回任何结果,但是如果调用线程关联了一个事务,那么这时就征募托管连接的XAResource。
For parallel operations this is not a factor, but consider when a transaction is serial and information from one service call may be needed by another.
对于并行操作,这不是一个因素,但考虑当事务是串行的且来自一个服务调用的信息可能是其他服务调用所需时。
As you can see from this overview, developing an effective transaction strategy is not always a straightforward task.
从这篇概述中可以看到,开发一个有效的事务策略并非总是一项简单的任务。
The pattern in this case is that when the first transaction reads a row it will "stamp" it with the identity of the user, similarly to how pessimistic session locking is handled (covered next).
本例中的模式是当第一个事务读取某个数据行时,它将加上时间戳和用户标识,这类似于悲观会话锁定的处理方式(稍后讨论)。
When a transaction starts, the scope key for this transaction is added to this context object.
当一个事务开始时,这个事务的范围键被添加到这个上下文对象中。
For example, certain log events that impact financial data or personal information might require an acknowledgement because this log event is part of a larger transaction.
比方说,影响财务数据或个人信息的某些登录事件可能需要确认,因为这些登录事件是更大事务中的一部分。
For transaction and collaboration portals, this work product has less importance but is still a good practice to develop.
对于事务门户和协作门户,该工作产品没有那么重要,但仍是有待开发的良好实践。
If the client propagates a transaction and a component is configured to join that transaction, then this component will run under the same transaction.
如果一个客户端传播一个事务,且组件被配置来加入该事务,那么这个组件将在同一个事务下运行。
In addition to transaction locking, this approach is needed to control the concurrency of applications on a higher level.
除了事务锁定之外,这种方式可以在更高的级别上控制应用程序的并发性。
Description: This is a J2C interface for transaction demarcation on a corresponding connection.
描述:这是用于相应连接上的事务划分的J2C接口。
This transaction demarcation strategy is especially valuable for applications that need to access multiple DAOs in a single transaction.
这种事务界定策略对于需要在一个事务中访问多个DAO的应用程序特别有用。
So in this example there is a global transaction numbered 100 that contains two branches with ID 1 and ID 2.
因此本例中,就有一个编号为100的全局事务,其中包含两个ID分别为1和2的分支。
This is required because, when a transaction is first executed, the client is attached only to the first machine in the transaction's path.
这样做的原因是,当一个事务第一次执行时,只有事务路径上的第一台机器的客户端会被添加进来。
This is achieved by using a transaction element and a compensation element.
这是通过使用事务元素和补偿元素来实现的。
This qualifier takes effect in a global transaction only and is ignored when it is a local transaction or if the invocation is done asynchronously.
这个限定符仅在全局事务中有效,如果在本地事务中或者调用是异步的,它则被忽略。
应用推荐