JP2012181803A - Transaction management system, management device, server device, transaction management method, and program - Google Patents
Transaction management system, management device, server device, transaction management method, and program Download PDFInfo
- Publication number
- JP2012181803A JP2012181803A JP2011045983A JP2011045983A JP2012181803A JP 2012181803 A JP2012181803 A JP 2012181803A JP 2011045983 A JP2011045983 A JP 2011045983A JP 2011045983 A JP2011045983 A JP 2011045983A JP 2012181803 A JP2012181803 A JP 2012181803A
- Authority
- JP
- Japan
- Prior art keywords
- transaction
- identifier
- server device
- management
- execution result
- 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
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、管理装置とサーバ装置との間でのトランザクションの管理を行うための、トランザクション管理システム、トランザクション管理方法、及びプログラムに関する。 The present invention relates to a transaction management system, a transaction management method, and a program for managing transactions between a management device and a server device.
近年、企業などでは、従来からの資産を生かしつつ、システムの発展を図るため、メインフレームと呼ばれる大型のコンピュータと、オープンサーバと呼ばれる汎用のサーバコンピュータとを組み合わせることが行われている(例えば、特許文献1〜特許文献3参照。)。
In recent years, companies have been combining a large computer called a mainframe and a general-purpose server computer called an open server in order to develop a system while making use of conventional assets (for example, (See Patent Literature 1 to
このようなメインフレームとオープンサーバとを組み合わせたシステム(以下「複合システム」とする。)では、メインフレームが、基幹業務のための処理を実行する。一方、オープンサーバは、データベースサービス、Webサービスといった各種サービスを提供するための処理を実行する。 In a system in which such a mainframe and an open server are combined (hereinafter referred to as “composite system”), the mainframe executes processing for core business. On the other hand, the open server executes processing for providing various services such as a database service and a Web service.
また、複合システムでは、オープンサーバが提供するサービスは、メインフレームを介して、利用者の端末装置に提供される。メインフレームは、利用者が端末装置を介してサービスの提供を要求すると、対応するローカルトランザクションを実行し、オープンサーバにリモートトランザクションを実行させる。 In the complex system, the service provided by the open server is provided to the user terminal device via the mainframe. When a user requests provision of a service via a terminal device, the mainframe executes a corresponding local transaction and causes an open server to execute a remote transaction.
具体的には、メインフレームが、ローカルトランザクションの中で、該当するオープンサーバに、リモートトランザクションの実行を要求すると、オープンサーバはリモートトランザクションを実行する。次に、オープンサーバからメインフレームにリモートトランザクションの処理結果が返却されると、メインフレームは、オープンサーバにリモートトランザクションのコミットを要求する。その後、メインフレームは、オープンサーバから、リモートトランザクションの実行結果(コミット結果等)を受け取ると、ローカルトランザクションをコミットする。 Specifically, when the mainframe requests a corresponding open server to execute a remote transaction in a local transaction, the open server executes the remote transaction. Next, when the processing result of the remote transaction is returned from the open server to the main frame, the main frame requests the open server to commit the remote transaction. After that, when the mainframe receives the execution result (commit result or the like) of the remote transaction from the open server, the mainframe commits the local transaction.
ところで、複合システムでは、メインフレームとオープンサーバとは、LANなどのネットワークによって接続されているため、両者の間に、通信障害が発生する場合がある。このような場合、メインフレーム側のローカルトランザクションとオープンサーバ側のリモートトランザクションとの間で不整合が生じる可能性がある。 By the way, in the complex system, since the mainframe and the open server are connected by a network such as a LAN, a communication failure may occur between them. In such a case, inconsistency may occur between the local transaction on the mainframe side and the remote transaction on the open server side.
例えば、メインフレームがリモートトランザクションのコミットを要求した後に、通信障害が発生すると、メインフレームは、オープンサーバから、リモートトランザクションの実行結果(コミット結果等)を受け取ることができない状態となる。このような場合、トランザクションの行方が不明となり、メインフレーム側のローカルトランザクションとオープンサーバ側のリモートトランザクションとの間で不整合が生じてしまう。そして、メインフレーム側には、通信障害の解消後に、オープンサーバの応答を取得する手立てはなく、再度、同じリモートトランザクションの実行を要求する必要がある。 For example, when a communication failure occurs after the mainframe requests to commit a remote transaction, the mainframe cannot receive a remote transaction execution result (commit result or the like) from the open server. In such a case, the whereabouts of the transaction becomes unknown, and inconsistency occurs between the local transaction on the mainframe side and the remote transaction on the open server side. On the mainframe side, there is no way to obtain an open server response after the communication failure is resolved, and it is necessary to request the execution of the same remote transaction again.
本発明の目的の一例は、上記問題を解消し、管理装置とサービスを提供するサーバ装置との間において、トランザクションの実行中に通信障害が発生した場合であっても、トランザクションの実行結果を確定し得る、トランザクション管理システム、トランザクション管理方法、これらに用いられる管理装置及びサーバ装置、更にはプログラムを提供することにある。 An example of the object of the present invention is to solve the above-mentioned problem and to determine the execution result of a transaction even when a communication failure occurs during the execution of a transaction between the management device and the server device that provides the service. Another object of the present invention is to provide a transaction management system, a transaction management method, a management device and a server device used for these, and a program.
上記目的を達成するため、本発明の一側面におけるトランザクション管理システムは、サーバ装置と、前記サーバ装置にトランザクションの実行を要求する管理装置とを備え、
前記管理装置は、
前記トランザクションに識別子を設定する、識別子設定部と、
前記サーバ装置に、設定された前記識別子を送信すると共に、前記トランザクションの実行を要求する、処理要求部とを備え、
前記サーバ装置は、
前記識別子を受信すると、前記管理装置が要求した前記トランザクションを実行する処理実行部と、
前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する格納部と、
前記管理装置が、前記識別子を用いて、前記トランザクションの実行結果の送信を求めた場合に、用いられた前記識別子と前記格納部が格納している識別子とが一致することを条件として、前記識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、実行結果送信部とを備えている、
ことを特徴とする。
To achieve the above object, a transaction management system according to one aspect of the present invention includes a server device and a management device that requests the server device to execute a transaction,
The management device
An identifier setting unit for setting an identifier in the transaction;
A processing request unit that transmits the set identifier to the server device and requests execution of the transaction;
The server device
When the identifier is received, a process execution unit that executes the transaction requested by the management device;
A storage unit that stores the identifier and the execution result of the transaction in association with each other;
When the management device uses the identifier to request transmission of the execution result of the transaction, the identifier is used on condition that the identifier used and the identifier stored in the storage unit match. An execution result transmission unit that transmits the execution result of the transaction linked to the management device,
It is characterized by that.
上記目的を達成するため、本発明の一側面におけるサーバ装置は、管理装置が要求したトランザクションを実行するサーバ装置であって、
前記管理装置が、前記トランザクションに識別子を設定し、設定した前記識別子を当該サーバ装置に送信すると共に、前記トランザクションの実行を要求した場合に、前記トランザクションを実行する処理実行部と、
前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する格納部と、
前記管理装置が、前記識別子を用いて、前記識別子によって特定されるトランザクションの実行結果の送信を求めた場合に、用いられた前記識別子と前記格納部が格納している識別子とが一致することを条件として、前記識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、実行結果送信部と、
を備えている、ことを特徴とする。
In order to achieve the above object, a server apparatus according to one aspect of the present invention is a server apparatus that executes a transaction requested by a management apparatus,
The management device sets an identifier for the transaction, transmits the set identifier to the server device, and requests execution of the transaction;
A storage unit that stores the identifier and the execution result of the transaction in association with each other;
When the management device uses the identifier to request transmission of the execution result of the transaction specified by the identifier, the identifier used and the identifier stored in the storage unit match. As a condition, an execution result transmitting unit that transmits an execution result of the transaction associated with the identifier to the management device;
It is characterized by having.
上記目的を達成するため、本発明の一側面における管理装置は、サーバ装置にトランザクションの実行を要求するための管理装置であって、
前記トランザクションに識別子を設定する、識別子設定部と、
前記サーバ装置に、設定された前記識別子を送信すると共に、前記トランザクションの実行を要求する処理要求部と、
を備えている、ことを特徴とする。
In order to achieve the above object, a management device according to one aspect of the present invention is a management device for requesting a server device to execute a transaction,
An identifier setting unit for setting an identifier in the transaction;
A processing request unit that transmits the set identifier to the server device and requests execution of the transaction;
It is characterized by having.
また、上記目的を達成するため、本発明の一側面におけるトランザクション管理方法は、サーバ装置と、前記サーバ装置にトランザクションの実行を要求する管理装置とを用いたトランザクション管理方法であって、
(a)前記管理装置によって、前記トランザクションに識別子を設定し、設定した前記識別子を前記サーバ装置に送信すると共に、前記トランザクションの実行を要求する、ステップと、
(b)前記サーバ装置によって、前記識別子を受信し、前記管理装置が要求した前記トランザクションを実行する、ステップと、
(c)前記サーバ装置によって、前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する、ステップと、
(d)前記管理装置によって、前記識別子を用いて、前記トランザクションの実行結果の送信を求める、ステップと、
(e)前記(d)のステップで用いられた前記識別子と前記サーバ装置が前記(c)のステップで格納した識別子とが一致することを条件として、前記サーバ装置によって、前記識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、ステップと、
を有する、ことを特徴とする。
In order to achieve the above object, a transaction management method according to an aspect of the present invention is a transaction management method using a server device and a management device that requests the server device to execute a transaction.
(A) setting an identifier for the transaction by the management device, transmitting the set identifier to the server device, and requesting execution of the transaction;
(B) receiving the identifier by the server device and executing the transaction requested by the management device;
(C) The server device stores the identifier and the execution result of the transaction in association with each other;
(D) using the identifier to request transmission of the execution result of the transaction by the management device;
(E) The server device associates the identifier used in the step (d) with the identifier provided that the identifier stored in the step (c) matches the identifier used in the step (c). Transmitting the execution result of the transaction to the management device; and
It is characterized by having.
上記目的を達成するため、本発明の一側面における第1のプログラムは、コンピュータに、管理装置が要求したトランザクションを実行させるためのプログラムであって、
前記コンピュータに、
(a)前記管理装置が、前記トランザクションに識別子を設定し、設定した前記識別子を前記コンピュータに送信すると共に、前記トランザクションの実行を要求した場合に、前記トランザクションを実行する、ステップと、
(b)前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する、ステップと、
(c)前記管理装置が、前記識別子を用いて、前記トランザクションの実行結果の送信を求めた場合に、用いられた前記識別子と前記(b)のステップで格納した識別子とが一致することを条件として、前記識別子に紐付けられたトランザクションの実行結果を前記管理装置に送信する、ステップと、
を実行させることを特徴とする。
In order to achieve the above object, a first program according to one aspect of the present invention is a program for causing a computer to execute a transaction requested by a management device,
In the computer,
(A) The management device sets an identifier for the transaction, transmits the set identifier to the computer, and executes the transaction when requested to execute the transaction; and
(B) storing the identifier and the execution result of the transaction in association with each other;
(C) When the management apparatus uses the identifier to request transmission of the execution result of the transaction, the identifier used is the same as the identifier stored in the step (b) Transmitting the execution result of the transaction associated with the identifier to the management device; and
Is executed.
また、上記目的を達成するため、本発明の一側面における第2のプログラムは、コンピュータによって、サーバ装置にトランザクションの実行を要求するためのプログラムであって、
前記コンピュータに、
(a)前記トランザクションに識別子を設定する、ステップと、
(b)前記サーバ装置に、設定された前記識別子を送信すると共に、前記トランザクションの実行を要求する、ステップと、
を実行させることを特徴とする。
In order to achieve the above object, a second program according to one aspect of the present invention is a program for requesting a server device to execute a transaction by a computer,
In the computer,
(A) setting an identifier for the transaction;
(B) transmitting the set identifier to the server device and requesting the execution of the transaction;
Is executed.
以上のように、本発明によれば、管理装置とサービスを提供するサーバ装置との間において、トランザクションの実行中に通信障害が発生した場合であっても、トランザクションの実行結果を確定することができる。 As described above, according to the present invention, even if a communication failure occurs during the execution of a transaction between the management apparatus and the server apparatus that provides the service, the execution result of the transaction can be determined. it can.
(実施の形態)
以下、本発明の実施の形態におけるトランザクション管理システム、トランザクション管理方法、管理装置及びサーバ装置、更にはプログラムについて、図1〜図3を参照しながら説明する。
(Embodiment)
Hereinafter, a transaction management system, a transaction management method, a management device, a server device, and a program according to an embodiment of the present invention will be described with reference to FIGS.
[システム構成]
最初に、本実施の形態におけるトランザクション管理システム100、これを構成する管理装置10及びサーバ装置20の構成について図1を用いて説明する。図1は、本発明の実施の形態におけるトランザクション管理システムの構成を示すブロック図である。
[System configuration]
First, the configuration of the transaction management system 100, the
図1に示すように、トランザクション管理システム100は、管理装置10と、サーバ装置20とを備え、両者は、LAN等のネットワークによって接続されている。このうち、サーバ装置20は、管理装置10からの要求に応じてトランザクションを実行する。本実施の形態では、サーバ装置20は、トランザクションとして、データベース40に対する操作を実行する。
As shown in FIG. 1, the transaction management system 100 includes a
更に、管理装置10には、利用者が使用する端末30がネットワークを介して接続されている。管理装置10は、利用者からの指示を、端末30を介して受け付け、指示に応じて、サーバ装置20にトランザクションの実行を要求する。本実施の形態では、利用者は、端末30を介して、データベース40における、検索、更新、削除等の操作を指示する。
Further, a terminal 30 used by a user is connected to the
また、図1に示すように、管理装置10は、処理要求部11と、識別子設定部12とを備えている。識別子設定部12は、トランザクションの実行が要求されると、トランザクションに識別子を設定する。処理要求部11は、サーバ装置20に、設定された識別子を送信すると共に、トランザクションの実行を要求する。
As shown in FIG. 1, the
サーバ装置20は、処理実行部21と、格納部22と、実行結果送信部23とを備えている。処理実行部21は、識別子を受信すると、管理装置10が要求したトランザクションを実行する。そして、処理実行部21は、トランザクションの実行から得られた「処理結果」、例えば、データベース40における検索結果等を、管理装置10に送信する。また、処理実行部21は、コミット処理を行った場合は、識別子とトランザクションの実行結果とを格納部22に送る。
The
格納部22は、識別子及びトランザクションの実行結果を互いに紐付けて格納する。ここで、「トランザクションの実行結果」とは、管理装置10からのコミット要求に応じて、コミット処理を行った後の結果、例えば、「コミット結果」を意味する。
The
実行結果送信部23は、管理装置10が、識別子を用いて、トランザクションの実行結果の送信を求めると、この用いられた識別子と格納部22が格納している識別子とが一致するかどうかを判定する。そして、実行結果送信部23は、一致している場合は、格納部22に格納されており、且つ、一致した識別子と紐付けられている、トランザクションの実行結果を管理装置10に送信する。
When the
このように、本実施の形態におけるトランザクション管理システム100は、管理装置10側から、サーバ装置20側に、トランザクションの実行結果を問い合わせることができるようになっている。このため、トランザクションの実行中に通信障害が発生した場合であっても、管理装置10は、トランザクションの実行結果を取得することができるので、管理装置10における処理とサーバ装置20における処理との間で、不整合が生じる事態が回避される。結果、管理装置10は、このような場合であっても、トランザクションの実行結果を確定できる。
As described above, the transaction management system 100 according to the present embodiment can inquire the execution result of the transaction from the
ここで、本実施の形態におけるトランザクション管理システム100について、更に具体的に説明する。本実施の形態では、管理装置10は、メインフレームとよばれる汎用のコンピュータによって構築されている。サーバ装置20は、各種Webサービスなどを提供するサーバコンピュータである。
Here, the transaction management system 100 in the present embodiment will be described more specifically. In the present embodiment, the
図1に示すように、管理装置10は、処理要求部11及び識別子設定部12に加えて、処理管理部13を備えている。また、サーバ装置20は、処理実行部21、格納部22、及び実行結果送信部23に加えて、通信部24を備えている。
As illustrated in FIG. 1, the
管理装置10において、処理管理部13は、サーバ装置20との間に通信経路を設定する。具体的には、処理管理部13は、端末30を介して利用者からの指示を受け付けると、サーバ装置20の通信部24にアクセスし、通信経路の設定を要求する。そして、サーバ装置20において、通信部24は、通信経路の設定を許可する場合は、応答信号を送信する。これにより、通信経路が設定される。また、この場合、処理要求部11は、設定された通信経路を介してトランザクションクの実行を要求する。
In the
また、処理管理部13は、トランザクションの完了前に、設定した通信経路が切断されると、新たな通信経路を設定する。そして、処理管理部13は、新たな通信経路を介して、サーバ装置20に、識別子を用いて、トランザクションの実行結果の送信を求める。サーバ装置20においては、実行結果送信部23は、この用いられた識別子と格納部22が格納している識別子とが一致する場合、この新たな通信経路を介して、格納部22に格納されており、且つ、識別子に紐付けられているトランザクションの実行結果を送信する。
Further, when the set communication path is disconnected before the transaction is completed, the
また、本実施の形態では、サーバ装置20において、通信部24は、識別子設定部25を備えることができる。識別子設定部25は、管理装置10の処理管理部13から接続が要求されると、第2の識別子(以下「SID」とする。)を設定する。
In the present embodiment, in the
更に、本実施の形態では、管理装置10において、識別子設定部12は、それが設定した識別子(以下「CID」とする。)と、サーバ装置20の識別子設定部25が設定したSIDとから、新たな識別子(以下「TXCID」とする。)を生成することができる。
Further, in the present embodiment, in the
このように、識別子設定部12がTXCIDを生成する場合、処理要求部11は、サーバ装置20に、TXCIDを送信する。更に、処理管理部13は、通信経路が切断された場合、TXCIDを用いて、サーバ装置20に、トランザクションの実行結果の送信を求める。
As described above, when the
また、サーバ装置20においては、処理実行部21は、TXCIDを受信したことを条件に、トランザクションを実行する。更に、格納部22は、TXCIDを、トランザクションの実行結果と紐付けて格納する。実行結果送信部23は、管理装置10から、トランザクションの実行結果の送信が求められると、その時に使用されたTXCIDと格納部22が格納しているTXCIDとが一致するかどうかを判定する。一致する場合、実行結果送信部23は、管理装置10に、TXCIDと紐付けられているトランザクションの実行結果を送信する。
Moreover, in the
このように、サーバ装置20側の識別子と管理装置10側の識別子とによって、新たな識別子が生成される態様とした場合は、トランザクションの実行結果が外部から不正に取得される可能性が低減される。この態様は、管理装置10と、サーバ20とが、別々の組織(企業等)に配置されている場合に有効である。
As described above, when a new identifier is generated based on the identifier on the
次に、本発明の実施の形態におけるトランザクション管理システム100の動作について図2を用いて説明する。図2は、本発明の実施の形態におけるトランザクション管理システムの動作を示すシーケンス図である。また、本実施の形態では、トランザクション管理システム100を動作させることによって、トランザクション管理方法が実施される。よって、本実施の形態におけるトランザクション管理方法の説明は、以下のトランザクション管理システム100の動作説明に代える。 Next, the operation of the transaction management system 100 in the embodiment of the present invention will be described with reference to FIG. FIG. 2 is a sequence diagram showing the operation of the transaction management system in the embodiment of the present invention. In the present embodiment, the transaction management method is implemented by operating the transaction management system 100. Therefore, the description of the transaction management method in the present embodiment is replaced with the following description of the operation of the transaction management system 100.
図2に示すように、まず、利用者が、端末30から、管理装置10に対してデータベース40の操作を指示すると、管理装置10において、処理管理部13が、サーバ装置20に対して接続を要求する(ステップS1)。
As shown in FIG. 2, first, when the user instructs the
次に、サーバ装置20において、通信部24は、接続要求を許可する場合は、識別子設定部25にCIDを設定させると共に、CIDを管理装置10に送信する(ステップS2)。
Next, in the
ステップS2が実行されると、管理装置10において、処理管理部13は、サーバ装置20との間に通信経路を設定する。また、処理管理部13は、受信したCIDを識別子設定部12に出力する(ステップS3)。
When step S <b> 2 is executed, in the
次に、識別子設定部12は、トランザクションに識別子(SID)を設定し、更に、ステップS3で処理管理部13が出力したCIDと、設定したSIDとから、TXCIDを生成する(ステップS4)。また、ステップS4では、識別子設定部12は、生成したTXCIDを処理要求部11に出力する。
Next, the
そして、処理要求部11は、ステップS1及びS2によって設定された通信経路を介して、サーバ装置20に対して、TXCIDを送信すると共に、トランザクションの実行を要求する(ステップS5)。
Then, the
ステップS5が実行されると、サーバ装置20においては、処理実行部21が、要求されたトランザクションを実行する。そして、処理実行部21は、トランザクションから得られた処理結果、例えば、トランザクションがデータベース40に対する検索であれば、検索結果情報を、管理装置10に送信する(ステップS6)。
When step S5 is executed, in the
次に、管理装置10において、処理管理部13は、トランザクションから得られた処理結果を受信すると、サーバ措置20に対してコミットを要求する(ステップS7)。
Next, in the
次に、管理装置10からコミットが要求されると、サーバ装置10において、処理実行部21は、コミット処理を実行し、更に、TXCID及びトランザクションの実行結果を互いに紐付けて格納部22に格納させる(ステップS8)。
Next, when a commit is requested from the
続いて、処理実行部21は、ステップS1及びS2で設定された通信経路を介して、トランザクションの実行結果(コミット結果)を管理装置10に送信する(ステップS9)。
Subsequently, the
ここで、ステップS9の実行後、ステップS1及びS2で設定された通信経路に何らかの障害が発生し、通信経路が切断されてしまったとする。この場合、従来であれば、管理装置10における処理と、サーバ装置20における処理との間で不整合が生じてしまう。
Here, after execution of step S9, it is assumed that some failure occurs in the communication path set in steps S1 and S2, and the communication path is disconnected. In this case, conventionally, inconsistency occurs between the process in the
これに対して、本実施の形態では、このような事態が生じた場合、管理装置10の処理管理部13は、新たな通信経路を設定するため、ステップS1と同様に、サーバ装置20に対して接続を要求する(ステップS10)。
On the other hand, in this embodiment, when such a situation occurs, the
次に、サーバ装置20の通信部24は、接続要求を許可する場合は、そのことを管理装置10に通知する(ステップS11)。そして、通知を受けると、管理装置10の処理管理部13は、新たな通信経路を介して、サーバ装置20に、TXCIDを送信すると共に、トランザクションの実行結果(コミット結果)の送信を要求する(ステップS12)。
Next, when permitting a connection request, the
次に、サーバ装置20において、実行結果送信部23は、ステップS12で送信されたTXCIDと格納部22が格納しているTXCIDとが一致するかどうかを判定する。そして、判定の結果、一致する場合は、実行結果送信部23は、ステップS10及びS11で設定された通信経路を介して、格納部22に格納されており、且つ、TXCIDと紐付けられている、トランザクションの実行結果(コミット結果)を、管理装置10に送信する(ステップS13)。
Next, in the
ステップS13が実行されると、管理装置10は、通信経路での障害発生によって受け取ることができなかったトランザクションの実行結果(コミット結果)を、受け取ることができる。この結果、管理装置10における処理と、サーバ装置20における処理との間での不整合の発生は抑制される。本実施の形態によれば、トランザクションの実行中に通信障害が発生した場合であっても、トランザクションの実行結果を確定することが可能となる。
When step S13 is executed, the
また、本発明の実施の形態における第1のプログラムは、コンピュータに、図2に示すステップS1、S3、S4、S5、S8、S10、S12を実行させるプログラムであれば良い。このプログラムをコンピュータにインストールし、実行することによって、本実施の形態における管理装置10を実現することができる。この場合、コンピュータのCPU(Central Processing Unit)は、処理要求部11、識別子設定部12、及び処理管理部13として機能し、処理を行なう。
Further, the first program in the embodiment of the present invention may be a program that causes a computer to execute steps S1, S3, S4, S5, S8, S10, and S12 shown in FIG. The
更に、本発明の実施の形態における第2のプログラムは、コンピュータに、図2に示すステップS2、S6、S7、S9、S11、S13を実行させるプログラムであれば良い。このプログラムをコンピュータにインストールし、実行することによって、本実施の形態におけるサーバ装置20を実現することができる。この場合、コンピュータのCPU(Central Processing Unit)は、処理実行部21、実行結果送信部23、及び通信部24として機能し、処理を行なう。また、コンピュータに備えられたハードディスク等の記憶装置が、格納部22として機能する。
Furthermore, the second program in the embodiment of the present invention may be a program that causes a computer to execute steps S2, S6, S7, S9, S11, and S13 shown in FIG. By installing and executing this program in a computer, the
ここで、本実施の形態における第1のプログラム及び第2のプログラムのいずれかを実行することによって、管理装置10又はサーバ装置20を実現するコンピュータについて図3を用いて説明する。図3は、本発明の実施の形態における管理装置又はサーバ装置を実現するコンピュータの一例を示すブロック図である。
Here, a computer that realizes the
図3に示すように、コンピュータ110は、CPU111と、メインメモリ112と、記憶装置113と、入力インターフェイス114と、表示コントローラ115と、データリーダ/ライタ116と、通信インターフェイス117とを備える。これらの各部は、バス121を介して、互いにデータ通信可能に接続される。
As shown in FIG. 3, the
CPU111は、記憶装置113に格納された、本実施の形態におけるプログラム(コード)をメインメモリ112に展開し、これらを所定順序で実行することにより、各種の演算を実施する。メインメモリ112は、典型的には、DRAM(Dynamic Random Access Memory)等の揮発性の記憶装置である。また、本実施の形態におけるプログラムは、コンピュータ読み取り可能な記録媒体120に格納された状態で提供される。なお、本実施の形態におけるプログラムは、通信インターフェイス117を介して接続されたインターネット上で流通するものであっても良い。
The CPU 111 performs various calculations by developing the program (code) in the present embodiment stored in the
また、記憶装置113の具体例としては、ハードディスクの他、フラッシュメモリ等の半導体記憶装置が挙げられる。入力インターフェイス114は、CPU111と、キーボード及びマウスといった入力機器118との間のデータ伝送を仲介する。表示コントローラ115は、ディスプレイ装置119と接続され、ディスプレイ装置119での表示を制御する。データリーダ/ライタ116は、CPU111と記録媒体120との間のデータ伝送を仲介し、記録媒体120からのプログラムの読み出し、及びコンピュータ110における処理結果の記録媒体120への書き込みを実行する。通信インターフェイス117は、CPU111と、他のコンピュータとの間のデータ伝送を仲介する。
Specific examples of the
また、記録媒体120の具体例としては、CF(Compact Flash)及びSD(Secure Digital)等の汎用的な半導体記憶デバイス、フレキシブルディスク(Flexible Disk)等の磁気記憶媒体、又はCD−ROM(Compact Disk Read Only Memory)などの光学記憶媒体が挙げられる。
Specific examples of the
以上のように、本発明によれば、管理装置とサービスを提供するサーバ装置との間において、トランザクションの実行中に通信障害が発生した場合であっても、トランザクションの実行結果を確定することができる。本発明は、例えば、メインフレームとサーバ装置とが接続される環境において有効である。 As described above, according to the present invention, even if a communication failure occurs during the execution of a transaction between the management apparatus and the server apparatus that provides the service, the execution result of the transaction can be determined. it can. The present invention is effective, for example, in an environment where a mainframe and a server device are connected.
10 管理装置
11 処理要求部
12 識別子設定部
13 処理管理部
20 サーバ装置
21 処理実行部
22 格納部
23 実行結果送信部
24 通信部
25 識別子設定部
30 端末
40 データベース
100 トランザクション管理システム
110 コンピュータ
111 CPU
112 メインメモリ
113 記憶装置
114 入力インターフェイス
115 表示コントローラ
116 データリーダ/ライタ
117 通信インターフェイス
118 入力機器
119 ディスプレイ装置
120 記録媒体
121 バス
DESCRIPTION OF
112
Claims (10)
前記管理装置は、
前記トランザクションに識別子を設定する、識別子設定部と、
前記サーバ装置に、設定された前記識別子を送信すると共に、前記トランザクションの実行を要求する、処理要求部とを備え、
前記サーバ装置は、
前記識別子を受信すると、前記管理装置が要求した前記トランザクションを実行する処理実行部と、
前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する格納部と、
前記管理装置が、前記識別子を用いて、前記トランザクションの実行結果の送信を求めた場合に、用いられた前記識別子と前記格納部が格納している識別子とが一致することを条件として、前記識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、実行結果送信部とを備えている、
ことを特徴とするトランザクション管理システム。 A server device, and a management device that requests the server device to execute a transaction,
The management device
An identifier setting unit for setting an identifier in the transaction;
A processing request unit that transmits the set identifier to the server device and requests execution of the transaction;
The server device
When the identifier is received, a process execution unit that executes the transaction requested by the management device;
A storage unit that stores the identifier and the execution result of the transaction in association with each other;
When the management device uses the identifier to request transmission of the execution result of the transaction, the identifier is used on condition that the identifier used and the identifier stored in the storage unit match. An execution result transmission unit that transmits the execution result of the transaction linked to the management device,
A transaction management system characterized by that.
前記処理要求部は、設定された前記通信経路を介して前記トランザクションの実行を要求し、
前記処理管理部は、前記トランザクションの完了前に、設定した前記通信経路が切断されると、新たな通信経路を設定し、前記新たな通信経路を介して、前記サーバ装置に、前記識別子を用いて、前記トランザクションの実行結果の送信を求める、
請求項1に記載のトランザクション管理システム。 The management device further includes a processing management unit for setting a communication path with the server device,
The processing request unit requests execution of the transaction via the set communication path,
The processing management unit sets a new communication path when the set communication path is disconnected before the completion of the transaction, and uses the identifier to the server device via the new communication path. Requesting transmission of the execution result of the transaction,
The transaction management system according to claim 1.
前記管理装置の前記識別子設定部が、それが設定した前記識別子と前記第2の識別子とから新たな識別子を生成し、
前記処理要求部が、前記サーバ装置に、前記新たな識別子を送信し、
前記サーバ装置の前記処理実行部が、前記新たな識別子を受信すると、前記トランザクションを実行し、
前記サーバ装置の前記格納部が、前記新たな識別子を前記トランザクションの実行結果と紐付けて格納し、
前記サーバ装置の前記実行結果送信部は、前記管理装置が、前記新たな識別子を用いて、前記トランザクションの実行結果の送信を求めた場合に、用いられた前記新たな識別子と前記格納部が格納している前記新たな識別子とが一致することを条件として、前記新たな識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、
請求項1または2に記載のトランザクション管理システム。 The server device further comprises an identifier setting unit for setting a second identifier when a connection is requested from the management device;
The identifier setting unit of the management device generates a new identifier from the identifier set by the identifier and the second identifier,
The processing request unit transmits the new identifier to the server device,
When the process execution unit of the server device receives the new identifier, it executes the transaction,
The storage unit of the server device stores the new identifier in association with the execution result of the transaction,
The execution result transmission unit of the server device stores the new identifier used and the storage unit when the management device requests transmission of the execution result of the transaction using the new identifier. The execution result of the transaction associated with the new identifier is transmitted to the management device on condition that the new identifier matches.
The transaction management system according to claim 1 or 2.
前記管理装置が、前記トランザクションに識別子を設定し、設定した前記識別子を当該サーバ装置に送信すると共に、前記トランザクションの実行を要求した場合に、前記トランザクションを実行する処理実行部と、
前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する格納部と、
前記管理装置が、前記識別子を用いて、前記識別子によって特定されるトランザクションの実行結果の送信を求めた場合に、用いられた前記識別子と前記格納部が格納している識別子とが一致することを条件として、前記識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、実行結果送信部と、
を備えている、ことを特徴とするサーバ装置。 A server device that executes a transaction requested by a management device,
The management device sets an identifier for the transaction, transmits the set identifier to the server device, and requests execution of the transaction;
A storage unit that stores the identifier and the execution result of the transaction in association with each other;
When the management device uses the identifier to request transmission of the execution result of the transaction specified by the identifier, the identifier used and the identifier stored in the storage unit match. As a condition, an execution result transmitting unit that transmits an execution result of the transaction associated with the identifier to the management device;
The server apparatus characterized by the above-mentioned.
前記トランザクションに識別子を設定する、識別子設定部と、
前記サーバ装置に、設定された前記識別子を送信すると共に、前記トランザクションの実行を要求する処理要求部と、
を備えている、ことを特徴とする管理装置。 A management device for requesting the server device to execute a transaction,
An identifier setting unit for setting an identifier in the transaction;
A processing request unit that transmits the set identifier to the server device and requests execution of the transaction;
A management device characterized by comprising:
(a)前記管理装置によって、前記トランザクションに識別子を設定し、設定した前記識別子を前記サーバ装置に送信すると共に、前記トランザクションの実行を要求する、ステップと、
(b)前記サーバ装置によって、前記識別子を受信し、前記管理装置が要求した前記トランザクションを実行する、ステップと、
(c)前記サーバ装置によって、前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する、ステップと、
(d)前記管理装置によって、前記識別子を用いて、前記トランザクションの実行結果の送信を求める、ステップと、
(e)前記(d)のステップで用いられた前記識別子と前記サーバ装置が前記(c)のステップで格納した識別子とが一致することを条件として、前記サーバ装置によって、前記識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、ステップと、
を有する、ことを特徴とするトランザクション管理方法。 A transaction management method using a server device and a management device that requests the server device to execute a transaction,
(A) setting an identifier for the transaction by the management device, transmitting the set identifier to the server device, and requesting execution of the transaction;
(B) receiving the identifier by the server device and executing the transaction requested by the management device;
(C) The server device stores the identifier and the execution result of the transaction in association with each other;
(D) using the identifier to request transmission of the execution result of the transaction by the management device;
(E) The server device associates the identifier used in the step (d) with the identifier provided that the identifier stored in the step (c) matches the identifier used in the step (c). Transmitting the execution result of the transaction to the management device; and
A transaction management method characterized by comprising:
前記(a)のステップにおいて、前記(f)のステップで設定された前記通信経路を介して前記トランザクションの実行を要求し、
前記トランザクションの完了前に、前記(f)のステップで設定された前記通信経路が切断された場合に、前記(d)のステップが実行され、
前記(d)のステップにおいて、前記管理装置によって、新たな通信経路を設定し、前記新たな通信経路を介して、前記サーバ装置に、前記識別子を用いて、前記トランザクションの実行結果の送信を求める、
請求項6に記載のトランザクション管理方法。 (F) further comprising the step of setting a communication path with the server device by the management device;
In the step (a), the execution of the transaction is requested via the communication path set in the step (f).
When the communication path set in the step (f) is disconnected before the transaction is completed, the step (d) is executed.
In the step (d), a new communication path is set by the management apparatus, and the server apparatus is requested to transmit the execution result of the transaction using the identifier via the new communication path. ,
The transaction management method according to claim 6.
前記(a)のステップにおいて、前記管理装置が、それが設定した前記識別子と前記第2の識別子とから新たな識別子を生成し、更に、前記サーバ装置に、前記新たな識別子を送信し、
前記(b)のステップにおいて、前記サーバ装置が、前記新たな識別子を受信して、前記トランザクションを実行し、
前記(c)のステップにおいて、前記サーバ装置が、前記新たな識別子を前記トランザクションの実行結果と紐付けて格納し、
前記(d)のステップにおいて、前記管理装置が、前記新たな識別子を用いて、前記トランザクションの実行結果の送信を求め、
前記(e)のステップにおいて、前記サーバ装置が、前記(d)のステップで用いられた前記新たな識別子と前記(c)のステップで格納した前記新たな識別子とが一致することを条件として、前記新たな識別子に紐付けられた前記トランザクションの実行結果を前記管理装置に送信する、
請求項6または7に記載のトランザクション管理方法。 (G) further comprising a step of setting a second identifier by the server device when a connection is requested from the management device to the server device;
In the step (a), the management device generates a new identifier from the identifier set by the management device and the second identifier, and further transmits the new identifier to the server device,
In the step (b), the server device receives the new identifier, executes the transaction,
In the step (c), the server device stores the new identifier in association with the execution result of the transaction,
In the step (d), the management device requests transmission of the execution result of the transaction using the new identifier,
In the step (e), on the condition that the server device matches the new identifier used in the step (d) and the new identifier stored in the step (c). Sending the execution result of the transaction associated with the new identifier to the management device;
The transaction management method according to claim 6 or 7.
前記コンピュータに、
(a)前記管理装置が、前記トランザクションに識別子を設定し、設定した前記識別子を前記コンピュータに送信すると共に、前記トランザクションの実行を要求した場合に、前記トランザクションを実行する、ステップと、
(b)前記識別子及び前記トランザクションの実行結果を互いに紐付けて格納する、ステップと、
(c)前記管理装置が、前記識別子を用いて、前記トランザクションの実行結果の送信を求めた場合に、用いられた前記識別子と前記(b)のステップで格納した識別子とが一致することを条件として、前記識別子に紐付けられたトランザクションの実行結果を前記管理装置に送信する、ステップと、
を実行させるプログラム。 A program for causing a computer to execute a transaction requested by a management device,
In the computer,
(A) The management device sets an identifier for the transaction, transmits the set identifier to the computer, and executes the transaction when requested to execute the transaction; and
(B) storing the identifier and the execution result of the transaction in association with each other;
(C) When the management apparatus uses the identifier to request transmission of the execution result of the transaction, the identifier used is the same as the identifier stored in the step (b) Transmitting the execution result of the transaction associated with the identifier to the management device; and
A program that executes
前記コンピュータに、
(a)前記トランザクションに識別子を設定する、ステップと、
(b)前記サーバ装置に、設定された前記識別子を送信すると共に、前記トランザクションの実行を要求する、ステップと、
を実行させる、プログラム。 A program for requesting a server device to execute a transaction by a computer,
In the computer,
(A) setting an identifier for the transaction;
(B) transmitting the set identifier to the server device and requesting the execution of the transaction;
A program that executes
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011045983A JP2012181803A (en) | 2011-03-03 | 2011-03-03 | Transaction management system, management device, server device, transaction management method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011045983A JP2012181803A (en) | 2011-03-03 | 2011-03-03 | Transaction management system, management device, server device, transaction management method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012181803A true JP2012181803A (en) | 2012-09-20 |
Family
ID=47012926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011045983A Pending JP2012181803A (en) | 2011-03-03 | 2011-03-03 | Transaction management system, management device, server device, transaction management method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012181803A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000020380A (en) * | 1998-06-29 | 2000-01-21 | Nec Corp | System and method for processing distributed transactions and storage medium storing program for distributed transaction processing |
JP2000076118A (en) * | 1998-09-03 | 2000-03-14 | Fuji Xerox Co Ltd | Distributed file processing apparatus and distributed file processing method |
JP2002374284A (en) * | 2001-06-13 | 2002-12-26 | Hitachi Ltd | Distribution transaction processing system |
JP2006338197A (en) * | 2005-05-31 | 2006-12-14 | Fujitsu Ltd | Transaction control program, transaction control method, and transaction processing system |
JP2010262487A (en) * | 2009-05-07 | 2010-11-18 | Makoto Goto | File storage system, server device and program, verification information storage device and program, and file storage device and program |
-
2011
- 2011-03-03 JP JP2011045983A patent/JP2012181803A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000020380A (en) * | 1998-06-29 | 2000-01-21 | Nec Corp | System and method for processing distributed transactions and storage medium storing program for distributed transaction processing |
JP2000076118A (en) * | 1998-09-03 | 2000-03-14 | Fuji Xerox Co Ltd | Distributed file processing apparatus and distributed file processing method |
JP2002374284A (en) * | 2001-06-13 | 2002-12-26 | Hitachi Ltd | Distribution transaction processing system |
JP2006338197A (en) * | 2005-05-31 | 2006-12-14 | Fujitsu Ltd | Transaction control program, transaction control method, and transaction processing system |
JP2010262487A (en) * | 2009-05-07 | 2010-11-18 | Makoto Goto | File storage system, server device and program, verification information storage device and program, and file storage device and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11469891B2 (en) | Expendable cryptographic key access | |
JP6130518B2 (en) | Instance host configuration | |
CN110413676B (en) | Database access method and device, electronic equipment and medium | |
US20210083856A1 (en) | Improved hardware security module management | |
US12105735B2 (en) | Asynchronous accounting method and apparatus for blockchain, medium and electronic device | |
JP2013534675A (en) | Provisioning multiple network resources | |
CN113793139B (en) | Payment abnormality processing method, processing device, storage medium and electronic device | |
US10747561B2 (en) | Log management device and log management method | |
US9514176B2 (en) | Database update notification method | |
KR102567900B1 (en) | Method and Apparatus for Ensuring Continuous Device Operational Stability in Cloud Degraded Mode | |
US11797271B2 (en) | Dynamic web-based integrated development environment | |
US20210073676A1 (en) | Model improvement support system | |
WO2022267769A1 (en) | Method and apparatus for generating graph data | |
CN113168405B (en) | Database management service providing system | |
JP2016128966A (en) | Service cooperation system, service cooperation device, terminal device, service cooperation method, and service cooperation program | |
US9959097B2 (en) | SVN interface system for heterogeneous development environments | |
JP2012181803A (en) | Transaction management system, management device, server device, transaction management method, and program | |
US9197519B2 (en) | Tracking objects within dynamic environments | |
WO2016173444A1 (en) | Transaction processing recording method and device | |
JP5464449B2 (en) | Method for detecting inconsistency between processing units considering reboot due to failure, shared apparatus, and cluster system | |
CN117472617B (en) | Message processing method and device, electronic equipment and readable storage medium | |
US20240397284A1 (en) | Methods for providing real-time interactive management of mobile assets in an environment and devices thereof | |
CN113760597B (en) | Intermediate data processing method, device, electronic device and storage medium | |
US11023487B2 (en) | Data replication for cloud based in-memory databases | |
JP2013250661A (en) | Information processor, information processing method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130809 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130814 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20140402 |