Google

Wednesday, October 27, 2004

[BASIC] TMS and TOLOG for Global Transaction

一个CLIENT 调用 服务A 和B
服务A / B 分别属于不同的TMS
那么这句话
The TMS that coordinates global transactions uses the TLOG file. Each machine should have its own TLOG.
(1) 做coordinator 的TMS是哪个?
(2) 如果A/ B 是发布在不同的主机,那么会记录1个还是2个TLOG

我知道第一个问题了
TPINIT.grpname Field used for direct client participation in a transaction. The name must be the name of a group listed in the configuration file

如果服务A/ B 是发布在同一主机上,但是连接不同的RM,也就是你说得不同的TMS,那么只会记录在1个TLOG上。

如果服务A/ B 是发布在不同的主机,而它们又在同一个全局事务中,那么会分别记录在各自的TLOG上。