JPH10320251A - トランザクション処理方法 - Google Patents
トランザクション処理方法Info
- Publication number
- JPH10320251A JPH10320251A JP9128281A JP12828197A JPH10320251A JP H10320251 A JPH10320251 A JP H10320251A JP 9128281 A JP9128281 A JP 9128281A JP 12828197 A JP12828197 A JP 12828197A JP H10320251 A JPH10320251 A JP H10320251A
- Authority
- JP
- Japan
- Prior art keywords
- result
- queue
- transaction
- committ
- commit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【課題】非同期メッセージキューを用いたトランザクシ
ョン方法に対して、トランザクションの結果を必ずクラ
イアントが知ることができるということにある。 【解決手段】クライアントは、トランザクション処理を
コミットキューへいれる。コミット装置は、キューイン
グされたメッセージをインターネットを介した適切なシ
ステムのサブコミットキューへいれる。サブコミット装
置は、メッセージをシステムに渡し、その処理結果を得
て、コミット装置へ通知する。コミット装置は、すべて
のサブコミット装置からの通知により、トランザクショ
ンの結果を決定し、結果キューへ結果をキューイングす
る。トランザクション失敗の場合に関しても、逆トラン
ザクションを投げることで、データの整合性を保証す
る。クライアントは、結果キューにアクセスすることで
結果を知ることができる。
ョン方法に対して、トランザクションの結果を必ずクラ
イアントが知ることができるということにある。 【解決手段】クライアントは、トランザクション処理を
コミットキューへいれる。コミット装置は、キューイン
グされたメッセージをインターネットを介した適切なシ
ステムのサブコミットキューへいれる。サブコミット装
置は、メッセージをシステムに渡し、その処理結果を得
て、コミット装置へ通知する。コミット装置は、すべて
のサブコミット装置からの通知により、トランザクショ
ンの結果を決定し、結果キューへ結果をキューイングす
る。トランザクション失敗の場合に関しても、逆トラン
ザクションを投げることで、データの整合性を保証す
る。クライアントは、結果キューにアクセスすることで
結果を知ることができる。
Description
【0001】
【発明の属する技術分野】本発明は、メッセージキュー
イングシステムにおいて、性能、信頼性の比較的低い通
信路を介したトランザクション処理方法に関する。
イングシステムにおいて、性能、信頼性の比較的低い通
信路を介したトランザクション処理方法に関する。
【0002】
【従来の技術】トランザクション処理システムにおい
て、メッセージキューを用いてネットワークを介した他
システムへアクセスする従来の方法は、要求を相手シス
テムのメッセージキューに確実にキューイングするとこ
ろまで、処理を保証していた。
て、メッセージキューを用いてネットワークを介した他
システムへアクセスする従来の方法は、要求を相手シス
テムのメッセージキューに確実にキューイングするとこ
ろまで、処理を保証していた。
【0003】
【発明が解決しようとする課題】従来の非同期のメッセ
ージキューを用いたトランザクション方法は、メッセー
ジキューまでは確実に要求が届くけれども、その先の処
理に関する結果をクライアントが知ることができなかっ
た。
ージキューを用いたトランザクション方法は、メッセー
ジキューまでは確実に要求が届くけれども、その先の処
理に関する結果をクライアントが知ることができなかっ
た。
【0004】
【課題を解決するための手段】本発明の非同期のメッセ
ージキューを用いたトランザクション処理方法では、ネ
ットワークを介して存在する複数のコミット装置がそれ
ぞれのコミットキューにキューイングされたメッセージ
の処理結果をクライアント側のコミット装置に知らせる
ことで、クライアント側のコミット装置がデータの整合
性を保証し、トランザクションの結果を結果キューにキ
ューイングすることができる。
ージキューを用いたトランザクション処理方法では、ネ
ットワークを介して存在する複数のコミット装置がそれ
ぞれのコミットキューにキューイングされたメッセージ
の処理結果をクライアント側のコミット装置に知らせる
ことで、クライアント側のコミット装置がデータの整合
性を保証し、トランザクションの結果を結果キューにキ
ューイングすることができる。
【0005】クライアントは、結果キューに任意の時点
でアクセスすることで、ネットワークを介した複数のシ
ステムをまたがるトランザクションの結果を知ることが
できる。
でアクセスすることで、ネットワークを介した複数のシ
ステムをまたがるトランザクションの結果を知ることが
できる。
【0006】
【発明の実施の形態】以下、本発明の実施の形態を詳細
に説明する。図1は本発明をインターネットを介したト
ランザクション処理に適用した場合の処理手順の実施の
形態を示すフローチャートであり、図2、図3、図4は
このシステムの動作を示すブロック図である。本実施例
では複数のシステムへのトランザクション処理を実行さ
せる例を説明する。しかし単独のシステムに対しても適
用可能なことは言うまでもない。
に説明する。図1は本発明をインターネットを介したト
ランザクション処理に適用した場合の処理手順の実施の
形態を示すフローチャートであり、図2、図3、図4は
このシステムの動作を示すブロック図である。本実施例
では複数のシステムへのトランザクション処理を実行さ
せる例を説明する。しかし単独のシステムに対しても適
用可能なことは言うまでもない。
【0007】図2を参照すると、本実施例におけるシス
テムは、クライアントからのトランザクションをキュー
イングするコミットキュー20と、トランザクション情
報を記憶し、そのトランザクション処理を取り消すため
の逆トランザクションを作成し、トランザクションを制
御するコミット装置10と、システム40への処理をキ
ューイングするサブコミットキュー21と、システム4
0へサブコミットキュー21にキューイングされた処理
を渡し、システム40内での処理の結果を受け、その結
果をコミット装置10へ通知するサブコミット装置11
と、コミット装置10が決定したトランザクションの結
果をキューイングする結果キュー30からなる。
テムは、クライアントからのトランザクションをキュー
イングするコミットキュー20と、トランザクション情
報を記憶し、そのトランザクション処理を取り消すため
の逆トランザクションを作成し、トランザクションを制
御するコミット装置10と、システム40への処理をキ
ューイングするサブコミットキュー21と、システム4
0へサブコミットキュー21にキューイングされた処理
を渡し、システム40内での処理の結果を受け、その結
果をコミット装置10へ通知するサブコミット装置11
と、コミット装置10が決定したトランザクションの結
果をキューイングする結果キュー30からなる。
【0008】次に、このように構成された本実施例の動
作について、図3、図4を参照しながら説明する。
作について、図3、図4を参照しながら説明する。
【0009】まず、図3に示すように、クライアントで
発生したトランザクション処理をコミットキュー20へ
キューイングする(ステップ100)。コミット装置1
0は、コミットキュー20にキューイングされた処理
(メッセージ)全てが一つのトランザクションを構成す
ることを認識し、記憶する。また、それぞれの処理を元
に戻す処理(逆トランザクション)を作成する(ステッ
プ102)。コミット装置10は、コミットキュー20
内の処理をインターネットを介した適切なサブコミット
キュー21へキューイングする。サブコミット装置11
は、サブコミットキュー21からメッセージを取り出
し、システム40へ渡す(ステップ106)。
発生したトランザクション処理をコミットキュー20へ
キューイングする(ステップ100)。コミット装置1
0は、コミットキュー20にキューイングされた処理
(メッセージ)全てが一つのトランザクションを構成す
ることを認識し、記憶する。また、それぞれの処理を元
に戻す処理(逆トランザクション)を作成する(ステッ
プ102)。コミット装置10は、コミットキュー20
内の処理をインターネットを介した適切なサブコミット
キュー21へキューイングする。サブコミット装置11
は、サブコミットキュー21からメッセージを取り出
し、システム40へ渡す(ステップ106)。
【0010】次に図4に示すように、システム40で
は、渡されたメッセージの処理を行い、それぞれの処理
結果をサブコミット装置11へ知らせる(ステップ10
8)。サブコミット装置11は、それぞれの結果をコミ
ット装置10へ知らせる(ステップ110)。コミット
装置10は、トランザクションを構成する全てのサブコ
ミット装置11からの処理結果を判断する(ステップ1
12)。サブコミット装置11から一つでも「失敗」が
返ってきたら、「成功」を返したサブコミットキュー2
1に対して逆トランザクションをキューイングし、シス
テム40の処理を元に戻す(ステップ120)。コミッ
ト装置10は、トランザクションの結果を「失敗」と決
定し(ステップ122)、結果キューへ結果(トランザ
クション失敗)をキューイングする(ステップ11
8)。
は、渡されたメッセージの処理を行い、それぞれの処理
結果をサブコミット装置11へ知らせる(ステップ10
8)。サブコミット装置11は、それぞれの結果をコミ
ット装置10へ知らせる(ステップ110)。コミット
装置10は、トランザクションを構成する全てのサブコ
ミット装置11からの処理結果を判断する(ステップ1
12)。サブコミット装置11から一つでも「失敗」が
返ってきたら、「成功」を返したサブコミットキュー2
1に対して逆トランザクションをキューイングし、シス
テム40の処理を元に戻す(ステップ120)。コミッ
ト装置10は、トランザクションの結果を「失敗」と決
定し(ステップ122)、結果キューへ結果(トランザ
クション失敗)をキューイングする(ステップ11
8)。
【0011】図2に示すようにすべてのサブコミット装
置から「成功」が返ってきたら、コミット装置は、作成
した逆トランザクションを破棄(ステップ114)し、
トランザクションの結果を「成功」と決定し(ステップ
116)、結果キューへ結果(トランザクション成功)
をキューイングする(ステップ118)。
置から「成功」が返ってきたら、コミット装置は、作成
した逆トランザクションを破棄(ステップ114)し、
トランザクションの結果を「成功」と決定し(ステップ
116)、結果キューへ結果(トランザクション成功)
をキューイングする(ステップ118)。
【0012】
【発明の効果】本発明によれば、コミット装置がコミッ
トキューにキューイングされたトランザクションのデー
タの整合性を保証し、その結果を結果キューにキューイ
ングするので、クライアントは任意の時点でその結果キ
ューへアクセスし、トランザクションの結果を知ること
ができるという効果がある。また、コミットキューに一
度トランザクションをキューイングしてしまえば、クラ
イアントでは他の処理を続行することができるという効
果がある。
トキューにキューイングされたトランザクションのデー
タの整合性を保証し、その結果を結果キューにキューイ
ングするので、クライアントは任意の時点でその結果キ
ューへアクセスし、トランザクションの結果を知ること
ができるという効果がある。また、コミットキューに一
度トランザクションをキューイングしてしまえば、クラ
イアントでは他の処理を続行することができるという効
果がある。
【図1】本発明の処理手順を示すフローチャートであ
る。
る。
【図2】本発明の実施の形態の処理を示す流れ図であ
る。
る。
【図3】本発明の実施の形態の前半の動作を説明する図
である。
である。
【図4】本発明の実施の形態の後半の動作を説明する図
である。
である。
10…コミット装置、11…サブコミット装置、20…
コミットキュー、21…サブコミットキュー、30…結
果キュー、40…システム。
コミットキュー、21…サブコミットキュー、30…結
果キュー、40…システム。
───────────────────────────────────────────────────── フロントページの続き (72)発明者 荒川 啓之 神奈川県横浜市戸塚区戸塚町5030番地 株 式会社日立製作所ソフトウェア開発本部内
Claims (1)
- 【請求項1】性能、信頼性の比較的低い通信路及びクラ
イアントにおいて、非同期のメッセージキューを用いて
複数のシステム間のデータの整合性を保ち、クライアン
トに必ず結果を返すことを特徴とするトランザクション
処理方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9128281A JPH10320251A (ja) | 1997-05-19 | 1997-05-19 | トランザクション処理方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9128281A JPH10320251A (ja) | 1997-05-19 | 1997-05-19 | トランザクション処理方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10320251A true JPH10320251A (ja) | 1998-12-04 |
Family
ID=14980954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9128281A Pending JPH10320251A (ja) | 1997-05-19 | 1997-05-19 | トランザクション処理方法 |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10320251A (ja) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008027344A (ja) * | 2006-07-25 | 2008-02-07 | Nec Access Technica Ltd | オブジェクト間の非同期メッセージ管理方式および非同期メッセージ管理方法 |
-
1997
- 1997-05-19 JP JP9128281A patent/JPH10320251A/ja active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008027344A (ja) * | 2006-07-25 | 2008-02-07 | Nec Access Technica Ltd | オブジェクト間の非同期メッセージ管理方式および非同期メッセージ管理方法 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5889957A (en) | Method and apparatus for context sensitive pathsend | |
US5699500A (en) | Reliable datagram service provider for fast messaging in a clustered environment | |
JP3384686B2 (ja) | 通信ネットワークから情報を受信するための方法および装置 | |
US7080120B2 (en) | System and method for collaborative processing of distributed applications | |
US7966405B2 (en) | Session multiplex protocol | |
US5331574A (en) | System and method for collecting response times for exception response applications | |
US7155438B2 (en) | High availability for event forwarding | |
US7055028B2 (en) | HTTP multiplexor/demultiplexor system for use in secure transactions | |
US5881239A (en) | Network system with resilient virtual fault tolerant sessions | |
JPS62118465A (ja) | 資源情報を伝播する方法 | |
US6751188B1 (en) | Method and apparatus for a graceful controller switchover | |
US7185099B1 (en) | Apparatus and method for communicating between computer systems using a sliding send window for ordered messages in a clustered computing environment | |
US7472161B2 (en) | System for ensuring client access to messages from a server | |
US20070291782A1 (en) | Acknowledgement filtering | |
US20030187969A1 (en) | Most eligible server in a common work queue environment | |
EP0398649B1 (en) | Remote interrupt processing | |
JPH10320251A (ja) | トランザクション処理方法 | |
US8060568B2 (en) | Real time messaging framework hub to intercept and retransmit messages for a messaging facility | |
KR100773778B1 (ko) | 멀티캐스트 방식의 분산 서버 제어 방법 및 그 시스템 | |
US11016807B2 (en) | Intermediary system for data streams | |
JPH0830523A (ja) | オンラインメッセージの通信方法 | |
JPH03208156A (ja) | 入出力電文分配装置 | |
JPH0981437A (ja) | トランザクション処理方法 | |
US20030208630A1 (en) | Pre-assembled message buffers for a network processor | |
JPH0683739A (ja) | ホスト計算機の切り換え方式 |