作者adrianshum (Alien)
看板java
标题Re: [问题] 请问 two phase commit 的问题
时间Tue May 19 22:52:51 2009
※ 引述《modamoda (IN)》之铭言:
: 请问 two phase commit 的问题
: 目前工作上要用WLI的 写个程式
: 中间需求是 同时commit 两个db
: 是用DB2
: 研究了一下 two phase commit
: 请问要怎麽用呢?Spring里面的吗??
: 或是有什麽工具可以用呢ˊ ˋ
: 爬文了一下 有看到 一篇文章
: 但是还是不是很了解
: 请问有什麽方法比较容易做的呢?
: 很感激qq
(WLI 是什麽?)
通常是在 application server 上跑,
app server 支援 JTA 的话, 就能用
spring 取得 app server 上的 transaction
manager, 再用在 spring 的 declarative
txn control (你喜欢 programmatic 做也可)
另外, 当然就是你连往 DB 的 data source
也要支援 distributed txn (通常会有 XA driver)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 202.155.236.82
※ 编辑: adrianshum 来自: 202.155.236.82 (05/19 22:53)