JP5947622B2 - Telegram distribution device - Google Patents

Telegram distribution device Download PDF

Info

Publication number
JP5947622B2
JP5947622B2 JP2012123640A JP2012123640A JP5947622B2 JP 5947622 B2 JP5947622 B2 JP 5947622B2 JP 2012123640 A JP2012123640 A JP 2012123640A JP 2012123640 A JP2012123640 A JP 2012123640A JP 5947622 B2 JP5947622 B2 JP 5947622B2
Authority
JP
Japan
Prior art keywords
message
buffer
database
distribution device
format
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.)
Active
Application number
JP2012123640A
Other languages
Japanese (ja)
Other versions
JP2013250669A (en
Inventor
博資 山口
博資 山口
明香 小野
明香 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MUFG Bank Ltd
Original Assignee
Bank of Tokyo Mitsubishi UFJ Trust Co
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Bank of Tokyo Mitsubishi UFJ Trust Co filed Critical Bank of Tokyo Mitsubishi UFJ Trust Co
Priority to JP2012123640A priority Critical patent/JP5947622B2/en
Publication of JP2013250669A publication Critical patent/JP2013250669A/en
Application granted granted Critical
Publication of JP5947622B2 publication Critical patent/JP5947622B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Description

本発明は、電文を受信し複数のバッファに電文を振り分ける装置に関する。特に、本発明は、受信した電文をデータベースに格納するとともに1または複数のモジュールに電文を送信する装置に関する。   The present invention relates to an apparatus that receives a message and distributes the message to a plurality of buffers. In particular, the present invention relates to an apparatus for storing a received electronic message in a database and transmitting the electronic message to one or a plurality of modules.

コンピュータが通信の中心的位置を占めるようになってきた。例えば、銀行業務や証券業務などの金融業務においては、同業他社や利用者などの外部より電文をコンピュータネットワークを用いて受信し、電文を受信したコンピュータが電文を必要な部門のコンピュータに振り分けることが行われている。   Computers have become a central part of communication. For example, in financial operations such as banking and securities operations, a message may be received from outside the company or users of the same industry using a computer network, and the computer that received the message may distribute the message to the computer in the department that requires it. Has been done.

外部より電文を受信したコンピュータは、データベース管理システムを備えていたりデータベースサーバに接続されていたりしており、受信した電文をデータベースに格納した後にそのデータベースから電文が必要な部門に振り分けられる。このように一旦データベースに電文を格納する理由は、受信した電文の形式と各部門に振り分ける際の電文の形式とが異なるために、形式の変換が必要であり、また、データベースには、障害が発生してもデータが喪失などしないように、強力なリカバリ機能が備わっているからである。   A computer that receives a message from the outside has a database management system or is connected to a database server. After the received message is stored in the database, it is distributed from the database to a department that requires the message. The reason for storing the message once in the database in this way is that the format of the received message is different from the format of the message when allocating to each department, so it is necessary to convert the format, and there is a failure in the database. This is because a powerful recovery function is provided so that data is not lost even if it occurs.

一方、ISO20022が制定され、金融業務においては従来の固定長の電文形式からXML(eXtensible Markup Language)に基づく構造化文書を表わす情報としての電文形式への移行が予定されている。   On the other hand, ISO20022 is enacted, and in the financial business, a transition from a conventional fixed-length message format to a message format as information representing a structured document based on XML (extensible Markup Language) is scheduled.

米国特許出願公開第2011/0137791号明細書US Patent Application Publication No. 2011/0137791

上述のような電文形式の移行に伴い、電文のサイズが大きくなることが予想される。このため、受信した電文をデータベースに格納し、電文が必要な部門に振り分ける処理をより高速に行うことが求められる。   With the transition of the message format as described above, the size of the message is expected to increase. For this reason, it is required to store the received electronic message in a database and perform a process of distributing the received electronic message to a department that requires the electronic message at a higher speed.

本発明は、このような状況に対応するために、受信した電文をデータベースに格納し、そのデータベースから電文が必要な部門に振り分ける処理を高速化することを目的の一つとする。   In order to cope with such a situation, an object of the present invention is to speed up the process of storing a received electronic message in a database and allocating the received electronic message to a department that needs the electronic message.

本発明の一実施形態として、データベースに入力されるデータを保持する第1バッファと、そのデータベースとは異なるモジュールに入力されるデータを保持する第2バッファと、特定形式の電文を受信する受信部と、その受信部により受信されたその特定形式の電文を、その特定形式を維持してその第2バッファに入力されるデータと、別の形式に変換して第1バッファに入力されるデータとに分離する分離部とを有する電文振分装置が提供される。   As one embodiment of the present invention, a first buffer that holds data input to a database, a second buffer that holds data input to a module different from the database, and a receiving unit that receives a telegram of a specific format And the data of the specific format received by the receiving unit, the data input to the second buffer while maintaining the specific format, and the data input to the first buffer after being converted to another format There is provided a telegram distribution device having a separation unit for separating the message.

本発明によれば、受信した電文をデータベース管理システムに格納し、電文が必要な部門に振り分ける処理をより高速に行うことができる。また、データベースに障害が発生しても、電文が必要な部門に振り分ける処理を続行することが可能となる。   According to the present invention, the received electronic message can be stored in the database management system, and the process of distributing to the department that needs the electronic message can be performed at a higher speed. In addition, even if a failure occurs in the database, it is possible to continue the process of distributing to a department that requires a message.

本発明の一実施形態に係る電文振分装置を含むシステムの機能ブロック図Functional block diagram of a system including a message distribution device according to an embodiment of the present invention 本発明の一実施形態に係る電文振分装置の処理のフローチャートThe flowchart of the process of the message distribution apparatus which concerns on one Embodiment of this invention 本発明の一実施形態に係る電文振分装置の電文の構造等の一例図An example diagram of a message structure of a message distribution device according to an embodiment of the present invention 本発明の一実施形態に係る電文振分装置の処理に用いられるデータ構造の一例図An example figure of the data structure used for the process of the message distribution apparatus which concerns on one Embodiment of this invention 本発明の一実施形態に係る電文振分装置を含むシステムの機能ブロック図Functional block diagram of a system including a message distribution device according to an embodiment of the present invention 本発明の一実施形態に係る電文振分装置の処理のフローチャートThe flowchart of the process of the message distribution apparatus which concerns on one Embodiment of this invention 本発明の一実施形態に係る電文振分装置の記録部により電文が記録されるデータ構造の一例図An example figure of the data structure by which the message | telegram is recorded by the recording part of the message | telegram distribution apparatus which concerns on one Embodiment of this invention 本発明の一実施形態に係る電文振分装置を含むシステムの機能ブロック図Functional block diagram of a system including a message distribution device according to an embodiment of the present invention 本発明の一実施形態に係る電文振分装置の処理のフローチャートThe flowchart of the process of the message distribution apparatus which concerns on one Embodiment of this invention

本発明を実施するための形態について、以下、複数の実施形態として説明を行う。なお、本発明は、以下の実施形態に限定して解釈されることはなく、以下の実施形態を変形して実施することも可能である。   Hereinafter, embodiments for carrying out the present invention will be described as a plurality of embodiments. The present invention is not construed as being limited to the following embodiments, and the following embodiments can be modified and implemented.

(実施形態1)
図1は、本実施形態に係る電文振分装置を含むシステムの機能ブロック図である。システム100は、電文振分装置101と、送信サーバ106と、通信網107と、データベース108と、モジュール109とを備える。
(Embodiment 1)
FIG. 1 is a functional block diagram of a system including a message distribution device according to the present embodiment. The system 100 includes a message distribution device 101, a transmission server 106, a communication network 107, a database 108, and a module 109.

電文振分装置101と送信サーバ106とは通信網107を介して接続される。送信サーバ106は電文を通信網107を介して電文振分装置101に送信する。例えば、金融業においては、送信サーバ106は日本銀行に設置されたサーバであり、電文振分装置101は金融機関のいずれかに設置されたサーバである。日本銀行は金融機関同士の間の資金決済を行い、送信サーバ106は資金決済の結果などを表わす電文を金融機関の電文振分装置101に対して通信網107を介して送信する。このときの電文の形式は、ISO20022により標準化された特定形式となっていてもよい。   The message distribution apparatus 101 and the transmission server 106 are connected via a communication network 107. The transmission server 106 transmits a message to the message distribution device 101 via the communication network 107. For example, in the financial industry, the transmission server 106 is a server installed at the Bank of Japan, and the message distribution device 101 is a server installed at one of financial institutions. The Bank of Japan performs fund settlement between financial institutions, and the transmission server 106 transmits a telegram representing the result of the fund settlement to the telegraphic distribution device 101 of the financial institution via the communication network 107. The format of the message at this time may be a specific format standardized by ISO20022.

電文振分装置101は、受信部102と、分離部103と、第1バッファ104と、第2バッファ105とを有する。   The electronic message distribution apparatus 101 includes a reception unit 102, a separation unit 103, a first buffer 104, and a second buffer 105.

受信部102は、通信網107を介して送信サーバ106に接続されており、送信サーバ106から送信される電文を受信する。また、受信部102は、受信した電文を分離部103へ伝達する。受信した電文は、例えば上述したISO20022により標準化された形式となっていてもよい。また、受信部102が受信した電文を分離部103へ伝達する際には、電文の形式は受信されたときの形式のそのまま維持されて伝達されてよい。ただし、通信および伝達の物理的媒体に応じて物理的な面における形式は変換され、ISO20022の規格などによる論理的な面における電文の形式はそのままであってもよい。   The receiving unit 102 is connected to the transmission server 106 via the communication network 107 and receives a message transmitted from the transmission server 106. In addition, the receiving unit 102 transmits the received electronic message to the separating unit 103. The received electronic message may be in a format standardized by, for example, ISO20022 described above. Further, when transmitting the message received by the receiving unit 102 to the separating unit 103, the format of the message may be transmitted as it is as it is received. However, the format in the physical aspect is converted according to the physical medium of communication and transmission, and the message format in the logical aspect according to the ISO20022 standard or the like may be left as it is.

分離部103は、受信部102により受信された電文を、その電文の形式を維持して第2バッファ105に入力されるデータと、別の形式に変換して第1バッファ104に入力されるデータとに分離する。例えば、分離部103は、電文の形式がISO20022により標準化された形式に保たれたまま第2バッファ105に入力されるデータとして電文
を分離し、分離した電文の形式を保ったまま第2バッファ105に入力する。また、分離部103は、電文を別の形式に変換して第1バッファに入力されるデータを分離し、第1バッファに入力する。別の形式としては、データベース108のスキーマに適した形式を挙げることができる。例えば、データベース108の特定のテーブルに入力するためのINSERT文の形式が挙げられる。
The separation unit 103 maintains the format of the message received by the receiving unit 102 and the data input to the second buffer 105 and the data converted to another format and input to the first buffer 104 And to separate. For example, the separation unit 103 separates the message as data input to the second buffer 105 while the message format is maintained in a format standardized by ISO20022, and the second buffer 105 retains the separated message format. To enter. Also, the separation unit 103 separates the data input to the first buffer by converting the electronic message into another format and inputs the data to the first buffer. As another format, a format suitable for the schema of the database 108 can be cited. For example, there is a format of an INSERT statement for inputting into a specific table of the database 108.

なお、分離部103が電文を分離する際、第1バッファ104に入力される電文と第2バッファ105に入力される電文とに重複があってもよい。例えば、分離部103は、受信部102により受信された電文の全てを第1バッファ104に入力し、受信部102により受信された電文の一部を第2バッファ105に入力してもよい。この場合は、第2バッファ105に入力される電文の集合が、第1バッファ104に入力される電文と第2バッファ105に入力される電文との重複となる。また、分離部103は、受信部102により受信された電文の全てを、第1バッファ104と第2バッファ105との両方に入力してもよい。この場合は、受信部102により受信された電文の全てが、第1バッファ104に入力される電文と第2バッファ105に入力される電文との重複となる。   When the separating unit 103 separates the messages, there may be an overlap between the message input to the first buffer 104 and the message input to the second buffer 105. For example, the separating unit 103 may input all the messages received by the receiving unit 102 to the first buffer 104 and input a part of the messages received by the receiving unit 102 to the second buffer 105. In this case, the set of messages input to the second buffer 105 overlaps the message input to the first buffer 104 and the message input to the second buffer 105. Further, the separation unit 103 may input all the messages received by the reception unit 102 to both the first buffer 104 and the second buffer 105. In this case, all of the messages received by the receiving unit 102 overlap the message input to the first buffer 104 and the message input to the second buffer 105.

第1バッファ104は、データベース108に入力されるデータを保持する。データベース108は、例えばリレーショナルデータベースである。第1バッファ104に入力されたデータは、少なくともデータベース108に入力されるまで第1バッファ104により保持される。これにより、受信され第1バッファ104に入力されたデータを確実にデータベース108に入力することができる。第1バッファ104は、例えば、先入れ先出し(First In First Out)形式のキュー構造により実現することができる。   The first buffer 104 holds data input to the database 108. The database 108 is a relational database, for example. The data input to the first buffer 104 is held by the first buffer 104 at least until it is input to the database 108. As a result, the data received and input to the first buffer 104 can be reliably input to the database 108. The first buffer 104 can be realized by, for example, a first-in first-out (First In First Out) queue structure.

第2バッファ105は、データベース108とは異なるモジュール109に入力されるデータを保持する。モジュール109は、他のコンピュータ(サーバ装置)へ電文を送信するための通信インタフェースを備えていてもよい。また、モジュール109は、電文振分装置101を構成するモジュールの一つとなっていてもよい。第2バッファ105も、第1バッファ104と同様に先入れ先出し(First In First Out)形式のキュー構造により実現することができる。これにより、他のコンピュータへ電文を送信する際、送信先のコンピュータの受信待ちが発生したとしても第2バッファ105を送信のためのバッファとして用いることができ、電文振分装置101と送信先とのコンピュータとの通信の帯域を効率よく使用することができる。   The second buffer 105 holds data input to a module 109 different from the database 108. The module 109 may include a communication interface for transmitting a message to another computer (server device). Further, the module 109 may be one of the modules constituting the message distribution device 101. Similarly to the first buffer 104, the second buffer 105 can also be realized by a first-in first-out (First In First Out) queue structure. As a result, when transmitting a message to another computer, the second buffer 105 can be used as a buffer for transmission even if reception waiting of the transmission destination computer occurs, and the message distribution device 101, the transmission destination, The bandwidth of communication with other computers can be used efficiently.

なお、モジュール109は複数存在していてもよい。この場合には、モジュール109の数に応じてさらに第3バッファ、第4バッファなどを電文振分装置101が有していてもよい。この場合には、分離部103は、受信部102により受信された電文を、形式を維持して、第2バッファ、第3バッファ、第4バッファなどに入力されるデータに分離してもよい。   A plurality of modules 109 may exist. In this case, the message distribution device 101 may further include a third buffer, a fourth buffer, and the like according to the number of modules 109. In this case, the separation unit 103 may separate the message received by the reception unit 102 into data input to the second buffer, the third buffer, the fourth buffer, or the like while maintaining the format.

図2は、本実施形態に係る電文振分装置101の動作を説明するフローチャートである。電文振分装置101は、送信サーバ106が通信網107を介して送信する電文が受信可能になる都度、図2に示すフローチャートの処理を行う。例えば、電文振分装置101がコンピュータを用いて実現される場合には、通信網107を介して電文が通信インタフェースにより受信されると割り込みが発生して実行されるプログラムの処理が図2に示される処理となっていてもよい。   FIG. 2 is a flowchart for explaining the operation of the message distribution device 101 according to the present embodiment. The message distribution device 101 performs the process of the flowchart shown in FIG. 2 every time a message transmitted from the transmission server 106 via the communication network 107 becomes receivable. For example, when the electronic message distribution apparatus 101 is realized by using a computer, the processing of a program that is executed when an electronic message is received by the communication interface via the communication network 107 and executed is shown in FIG. It may be a process to be performed.

ステップS201の処理として電文を受信する。例えば、通信インタフェースのキューに蓄積された電文を読み取ることにより、電文を受信する。ステップS202の処理として、電文を解析する。電文は特定形式を有する。例えば、電文の形式はXMLの形式であってもよい。電文が特定形式を有するので、その形式に従って解析を行うことが可能である。   A message is received as the processing of step S201. For example, a message is received by reading a message stored in the queue of the communication interface. In step S202, the electronic message is analyzed. The message has a specific format. For example, the message format may be an XML format. Since a message has a specific format, it is possible to perform analysis according to the format.

図3(A)は、電文の一例を示す。この例では、電文は、XMLによる構造化文書の形式を有しており、「<電文>」のタグとこれに対応する「</電文>」のタグ、「<種類>」のタグとこれに対応する「</種類>」のタグ、「<あて先>」のタグとこれに対応する「</あて先>」のタグ、「<送信日>」のタグとこれに対応する「</送信日>」のタグを有する形式となっている。このようなXMLの形式を有する場合には、タグの対応関係を考慮して解析を行うことが可能である。   FIG. 3A shows an example of a message. In this example, the message has the form of a structured document in XML. The tag “<message”, the tag “</ message>”, the tag “<type>”, and the tag "</ Type>" tag corresponding to, "<Destination>" tag and corresponding "</ Destination>" tag, "<Sent date>" tag and corresponding "</ Send> The format has a tag of “day>”. In the case of having such an XML format, it is possible to perform analysis in consideration of tag correspondence.

例えば、図3(A)に示す電文の一例を解析することにより、図3(B)に示すパース木を得ることができる。ノード301(ルートノード)は、「<電文>」のタグとこれに対応する「</電文>」のタグで囲まれた部分に対応する。ノード302は、「<種類>」のタグとこれに対応する「</種類>」のタグで囲まれた部分に対応する。そして、ノード312が、「電文1」に対応する。ノード303は、「<あて先>」のタグとこれに対応する「</あて先>」のタグで囲まれた部分に対応する。そして、ノード313が、「あて先1」に対応する。ノード304は、「<送信日>」のタグとこれに対応する「</送信日>」のタグで囲まれた部分に対応する。そして、ノード314が、「2012年6月7日」に対応する。   For example, the parsing tree shown in FIG. 3B can be obtained by analyzing an example of the electronic message shown in FIG. The node 301 (root node) corresponds to a portion surrounded by a tag “<message>” and a tag “</ message>” corresponding thereto. The node 302 corresponds to a portion surrounded by a tag “<type>” and a tag “</ type>” corresponding thereto. The node 312 corresponds to “message 1”. The node 303 corresponds to a portion surrounded by a tag “<destination>” and a corresponding tag “</ destination>”. The node 313 corresponds to “destination 1”. The node 304 corresponds to a portion surrounded by a tag “<transmission date>” and a tag “</ transmission date>” corresponding thereto. The node 314 corresponds to “June 7, 2012”.

ステップS202においては、例えば、図3(B)に示すパース木を生成し、ルートノードであるノード301から末端のノードにいたる経路を選択し、解析を行うことができる。   In step S202, for example, a parse tree shown in FIG. 3B can be generated, and a route from the node 301 as the root node to the terminal node can be selected and analyzed.

ステップS203においては、ステップS202の解析に基づいて、電文を第2バッファに入力するべきかどうかについて判断する。もし、第2バッファ105に入力するべきと判断されれば、ステップS204に処理を移行させて、電文を第2バッファ105に入力する。もし、第2バッファ105に入力するべきでないと判断されれば、ステップS204をスキップする。   In step S203, based on the analysis in step S202, it is determined whether or not a message should be input to the second buffer. If it is determined that it should be input to the second buffer 105, the process proceeds to step S <b> 204 and a message is input to the second buffer 105. If it is determined that the data should not be input to the second buffer 105, step S204 is skipped.

ステップS203の判断は、例えば図3に示すテーブルを参照し、ノード302に接続されるノード312が対応する値に応じて行うことができる。すなわち、「<種類>」のタグとこれに対応する「</種類>」のタグで囲まれた部分が「電文1」であれば、分離先の列の値が2となっているので、第2バッファに入力するべきと判断を行う。また、「電文2」であれば、分離先の列の値が1であり、2ではないので、第2バッファに入力するべきではないと判断を行う。   The determination in step S203 can be made according to the value corresponding to the node 312 connected to the node 302 with reference to the table shown in FIG. That is, if the portion enclosed by the tag “<type>” and the tag “</ type>” corresponding to this tag is “message 1”, the value of the separation destination column is 2. It is determined that the data should be input to the second buffer. If it is “message 2”, since the value of the separation destination column is 1 and not 2, it is determined that it should not be input to the second buffer.

ステップS205において、別の形式に変換する。例えば、データベース108のスキーマに対応する形式に変更する。すなわち、データベース108に、図3(C)に示すテーブルが定義されているとする。そのテーブルの列としては、「種類」の列322、「あて先」の列323、…、「送信日」の列324が定義されており、これらがそれぞれ「<種類>」、「<あて先>」、…、「<送信日>」のタグに対応しているとすると、
INSERT INTO テーブル(種類、あて先、…、送信日) VALUES ("電文1"、"あて先1"、…、"2012年6月7日");
というSQLのINSERT文の形式に変換する。
In step S205, conversion into another format is performed. For example, the format is changed to a format corresponding to the schema of the database 108. That is, it is assumed that the table shown in FIG. As the columns of the table, a “type” column 322, a “destination” column 323,..., A “transmission date” column 324 are defined, which are “<type>” and “<destination>”, respectively. , ..., and "<sent date>" tag,
INSERT INTO table (type, destination, ..., transmission date) VALUES ("message 1", "destination 1", ..., "June 7, 2012");
To the SQL INSERT statement format.

ステップS206の処理として、ステップS205により変換された電文を、第1バッファ104に入力する。   In step S206, the message converted in step S205 is input to the first buffer 104.

なお、上述したように、モジュールが複数存在しその数に応じて、第3バッファ、第4バッファなどを電文振分装置101が有している場合には、ステップS202の解析に基づいて、ステップS203においては、第2バッファに入力するべきかどうかに加えて、第3バッファ、第4バッファなどにも入力するべきかどうかを判断し、ステップS204にいては、入力するべきと判断されたバッファに電文を入力する。   Note that, as described above, when there are a plurality of modules and the message distribution device 101 has the third buffer, the fourth buffer, and the like according to the number of modules, the step is based on the analysis of step S202. In S203, in addition to whether to input to the second buffer, it is determined whether to input to the third buffer, the fourth buffer, etc., and in step S204, the buffer determined to be input Enter a message in

また、ステップS205およびS206の処理は、ステップS201の後の任意の時点で実行するようにすることもできる。   Further, the processes in steps S205 and S206 can be executed at an arbitrary time after step S201.

以上のように、本実施形態によれば、受信した電文をデータベースに格納し、電文が必要な部門に対応するモジュールに分離し入力を行って振り分ける処理を行うことができる。この場合、モジュールには、データベースを経由しないで入力を行って振り分けることができるので、高速に処理を行うことができる。また、データベース管理システムに障害が発生しても、電文が必要な部門に振り分ける処理を続行することが可能となる。   As described above, according to the present embodiment, the received electronic message can be stored in the database, separated into modules corresponding to the departments that need the electronic message, input, and distributed. In this case, since the module can be input and distributed without going through the database, processing can be performed at high speed. In addition, even if a failure occurs in the database management system, it is possible to continue the process of distributing to a department that requires a message.

(実施形態2)
本発明の実施形態2として、受信した電文をデータベースとは別に記録することが可能な形態について説明する。
(Embodiment 2)
As a second embodiment of the present invention, a description will be given of a form in which a received electronic message can be recorded separately from a database.

図5は、本発明の実施形態2に係るシステムの機能ブロック図である。システム500は、電文振分装置501と、送信サーバ106と、通信網107と、データベース108と、モジュール109とを備える。なお、実施形態1と同じまたは同様の機能を有する部分には、同じ符号を用いているので、同じ符号を有する部分の説明は以下では省略する。   FIG. 5 is a functional block diagram of a system according to the second embodiment of the present invention. The system 500 includes a message distribution device 501, a transmission server 106, a communication network 107, a database 108, and a module 109. In addition, since the same code | symbol is used for the part which has the same or similar function as Embodiment 1, description of the part which has the same code | symbol is abbreviate | omitted below.

電文振分装置501は、受信部102と、分離部103と、第1バッファ104と、第2バッファ105と、記録部502とを有する。   The message distribution device 501 includes a receiving unit 102, a separating unit 103, a first buffer 104, a second buffer 105, and a recording unit 502.

記録部502は、受信部102により受信される電文を記録する。例えば、受信部102により電文が受信されるときのパケットの構造をそのまま記録してもよい。あるいは、受信部102が、受信した電文を分離部103に伝達するときの情報の形式として記録を行ってもよい。また、必要に応じて、受信日時などの情報を付加したり、電文のヘッダやフッタなどの情報を削除したり、形式を変更して記録を行ってもよい。   The recording unit 502 records a message received by the receiving unit 102. For example, the packet structure when the message is received by the receiving unit 102 may be recorded as it is. Alternatively, the receiving unit 102 may perform recording as a format of information when the received electronic message is transmitted to the separating unit 103. If necessary, information such as the reception date and time may be added, information such as a message header and footer may be deleted, or the format may be changed and recorded.

記録部502は、電文を永続的に記録するのが好ましい。このため、記録部502は揮発性メモリのみを用いて記録するのではなく、ハードディスクなどを用いて電磁気的あるいは光学的などの手段により電文を記録するのが好ましい。   The recording unit 502 preferably records the message permanently. For this reason, it is preferable that the recording unit 502 does not record using only a volatile memory, but records a message using a hard disk or the like by any electromagnetic or optical means.

図6は、本実施形態に係る電文振分装置501の処理の流れを説明するフローチャートである。図2に示したフローチャートの処理と同様に、ステップS201の処理として、電文を受信する。次に、ステップS601の処理として、記録部502に受信した電文を記録する。例えば、記録部502に、受信した電文を伝達し、記録部502に電文を記録させる。   FIG. 6 is a flowchart for explaining the processing flow of the message distribution device 501 according to the present embodiment. Similar to the processing of the flowchart shown in FIG. 2, a message is received as the processing of step S201. Next, as the process of step S601, the received message is recorded in the recording unit 502. For example, the received electronic message is transmitted to the recording unit 502, and the recording unit 502 records the electronic message.

図7は、記録部502が電文を記録するデータ構造の一例を示す。例えば、電文が受信された順序を示す「番号」の列と、受信した電文が格納される「電文」の列を有するテーブルを用いることができる。「番号」の列の代わりに、受信日時や記録日時が格納される列が用いられてもよい。   FIG. 7 shows an example of a data structure in which the recording unit 502 records a message. For example, a table having a “number” column indicating the order in which messages are received and a “message” column in which the received messages are stored can be used. Instead of the “number” column, a column storing the reception date and time and the recording date and time may be used.

次のステップS202以降は図2のフローチャートと同様なので説明を省略する。   The subsequent step S202 and subsequent steps are the same as those in the flowchart of FIG.

なお、モジュールが複数存在しその数に応じて、第3バッファ、第4バッファなどを電文振分装置501が有している場合には、ステップS202の解析に基づいて、ステップS203においては、第2バッファに入力するべきかどうかに加えて、第3バッファ、第4バッファなどにも入力するべきかどうかを判断し、ステップS204においては、入力するべきと判断されたバッファに電文を入力してもよいことなどは、実施形態1と同様である。   Note that when there are a plurality of modules and the message distribution device 501 has a third buffer, a fourth buffer, and the like according to the number of modules, based on the analysis in step S202, In addition to whether to input to the second buffer, it is determined whether to input to the third buffer, the fourth buffer, etc. In step S204, a message is input to the buffer determined to be input. The other things are the same as in the first embodiment.

同様に、ステップS205およびS206は、ステップS201の後の任意の時点で実行するようにすることができることも実施形態1と同様である。   Similarly, steps S205 and S206 can be executed at an arbitrary time after step S201, as in the first embodiment.

本実施形態においては、受信した電文をデータベース108に加えて記録部502にも記録を行うので、データの喪失にさらに備えることが可能となる。   In the present embodiment, since the received electronic message is recorded in the recording unit 502 in addition to the database 108, it is possible to further prepare for data loss.

(実施形態3)
本発明の実施形態3として、記録部により記録された電文を用いてデータベースを復旧することができる形態について説明する。
(Embodiment 3)
As Embodiment 3 of the present invention, a mode in which a database can be restored using a message recorded by a recording unit will be described.

図8は、本発明の実施形態3に係るシステムの機能ブロック図である。システム800は、電文振分装置801と、送信サーバ106と、通信網107と、データベース108と、モジュール109とを備える。   FIG. 8 is a functional block diagram of a system according to the third embodiment of the present invention. The system 800 includes a message distribution device 801, a transmission server 106, a communication network 107, a database 108, and a module 109.

電文振分装置801は、受信部102と、分離部103と、第1バッファ104と、第2バッファ105と、記録部502と、復旧部802とを有する。   The message distribution device 801 includes a receiving unit 102, a separating unit 103, a first buffer 104, a second buffer 105, a recording unit 502, and a restoration unit 802.

復旧部802は、データベース108が障害を起こした場合に、記録部502に記録された電文を用いてデータベース108を復旧するための部である。   The recovery unit 802 is a unit for recovering the database 108 using a message recorded in the recording unit 502 when a failure occurs in the database 108.

復旧部802によるデータベース108の復旧の具体的手順の一例は、図9に示すフローチャートに示す通りである。すなわち、ステップ901の処理として、データベース108のトランザクションログなどを参照し、障害が発生したときに存在していたトランザクションのロールバックを行う。ステップS902の処理として、ロールバックされた時点以降に記録部502に記録された電文を求める。電文が受信された順に記録部502に記録されているのであれば、障害の発生以降の最初に受信され記録された電文を求め、その電文以降に記録された電文を求める。   An example of a specific procedure for restoring the database 108 by the restoration unit 802 is as shown in the flowchart of FIG. That is, as the processing in step 901, the transaction log of the database 108 is referred to, and the transaction existing when the failure occurs is rolled back. As the processing in step S902, a message recorded in the recording unit 502 after the time of rollback is obtained. If the messages are recorded in the recording unit 502 in the order received, the message received and recorded first after the occurrence of the failure is obtained, and the message recorded after the message is obtained.

ステップS903の処理として、ステップS902で求められた電文をデータベースに入力する。このとき、復旧部903は、分離部103のように、ステップS902で求められた電文を、別の形式に変換して第1バッファ104に電文を入力してもよい。また、復旧部802は、ステップS902で求められた電文を、分離部103が第1バッファ104に入力するように指定をして伝達してもよい。また、データベースに障害が発生した時点以降に、電文が第2バッファ105に入力されていなければ、受信部102が分離部103に電文を伝達するように、復旧部802は電文を分離部103に伝達してもよい。   In step S903, the message obtained in step S902 is input to the database. At this time, the restoration unit 903 may convert the message obtained in step S902 into another format and input the message to the first buffer 104 as in the separation unit 103. Further, the restoration unit 802 may transmit the message obtained in step S <b> 902 by designating the separation unit 103 to input to the first buffer 104. In addition, if a message has not been input to the second buffer 105 after the failure of the database, the restoration unit 802 sends the message to the separation unit 103 so that the reception unit 102 transmits the message to the separation unit 103. May be communicated.

本実施形態では、図9の処理を行っている間も、受信部102は電文を受信し、記録部502は、受信された電文を記録するようになっていてもよい。これにより、電文振分装置801を常時動作させることが可能となり、24時間365日の金融取引などが可能となる。   In the present embodiment, the receiving unit 102 may receive a message while the processing of FIG. 9 is being performed, and the recording unit 502 may be configured to record the received message. As a result, it is possible to operate the message distribution device 801 at all times, and financial transactions and the like on 24 hours 365 days are possible.

Claims (7)

データベースに入力されるデータを保持する第1バッファと、
前記データベースとは異なるモジュールに入力されるデータを保持する第2バッファと、
特定形式の電文を受信する受信部と、
前記受信部により受信された前記特定形式の電文を、前記特定形式を維持して前記第2バッファに入力されるデータと、別の形式に変換して前記第1バッファに入力されるデータと、に分離する分離部と
を有する電文振分装置。
A first buffer for holding data input to the database;
A second buffer for holding data input to a module different from the database;
A receiving unit for receiving a message in a specific format;
The message of the specific format received by the receiving unit, the data input to the second buffer while maintaining the specific format, the data input to the first buffer after being converted to another format, A message distribution device having a separation unit for separating the message.
前記受信部により受信される電文を記録する記録部を備える請求項1に記載の電文振分装置。   The message distribution device according to claim 1, further comprising a recording unit that records a message received by the receiving unit. 前記データベースが障害を起こした場合に、前記記録部に記録された電文を用いて前記データベースを復旧する復旧部を備える請求項2に記載の電文振分装置。   The message distribution device according to claim 2, further comprising: a recovery unit that recovers the database using a message recorded in the recording unit when the database has failed. 前記分離部は、前記受信部により受信された前記特定形式の電文を前記第1バッファに入力されるデータとして分離するときに、前記電文を前記データベースのスキーマに対応する形式に変更することを特徴とする請求項1から3のいずれかに記載の電文振分装置。   The separation unit changes the message to a format corresponding to the schema of the database when separating the message in the specific format received by the receiving unit as data input to the first buffer. The electronic message distribution apparatus according to claim 1. 前記第2バッファは入力されたデータを前記電文振分装置と通信を行うサーバ装置に送信するためのバッファであることを特徴とする請求項1から4のいずれかに記載の電文振分装置。   5. The message distribution device according to claim 1, wherein the second buffer is a buffer for transmitting input data to a server device that communicates with the message distribution device. 前記電文は、構造化文書を表わす情報である請求項1から5のいずれかに記載の電文振分装置。   The electronic message distribution device according to claim 1, wherein the electronic message is information representing a structured document. 前記分離部は、前記電文の特定のタグ情報に基づいて、他のサーバを決定して前記受信部により受信された電文を振り分けることを特徴とする請求項6に記載の電文振分装置。
The electronic message distribution device according to claim 6, wherein the separation unit determines another server based on specific tag information of the electronic message and distributes the electronic message received by the reception unit.
JP2012123640A 2012-05-30 2012-05-30 Telegram distribution device Active JP5947622B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012123640A JP5947622B2 (en) 2012-05-30 2012-05-30 Telegram distribution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012123640A JP5947622B2 (en) 2012-05-30 2012-05-30 Telegram distribution device

Publications (2)

Publication Number Publication Date
JP2013250669A JP2013250669A (en) 2013-12-12
JP5947622B2 true JP5947622B2 (en) 2016-07-06

Family

ID=49849322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012123640A Active JP5947622B2 (en) 2012-05-30 2012-05-30 Telegram distribution device

Country Status (1)

Country Link
JP (1) JP5947622B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60144865A (en) * 1984-01-09 1985-07-31 Nec Corp Telegram reprocessing system
JPH11213079A (en) * 1998-01-21 1999-08-06 Oki Software Okayama:Kk Customer transaction managing system
JP2007272716A (en) * 2006-03-31 2007-10-18 Oki Electric Ind Co Ltd Financial institution channel link system

Also Published As

Publication number Publication date
JP2013250669A (en) 2013-12-12

Similar Documents

Publication Publication Date Title
CN109254982B (en) Stream data processing method, system, device and computer readable storage medium
US7958188B2 (en) Transaction-initiated batch processing
US8825798B1 (en) Business event tracking system
US20110010460A1 (en) Brokerage Transaction Server and Method Using Encapsulated Messages
US10303753B2 (en) System for copybook flat data conversion and inline transformation
US11061921B2 (en) System for inline message detail extraction and transformation
JP2010073123A (en) Log managing apparatus, system, method and program
CN110753050B (en) Method and device for generating protocol document, computer storage medium and electronic equipment
CN113067883A (en) Data transmission method and device, computer equipment and storage medium
CN110515965A (en) Business paper processing method, device, computer equipment and storage medium
CN113065953B (en) Futures relay trading system based on distribution type
CN103646015B (en) Transmission, the method and system for receiving and transmitting XML message
CN105204776B (en) Data processing method and device
JP6364727B2 (en) Information processing system, distributed processing method, and program
JP5947622B2 (en) Telegram distribution device
CN111930385A (en) Data acquisition method, device, equipment and storage medium
US20060004838A1 (en) Sharing large objects in distributed systems
US20070203921A1 (en) Scalable algorithm for sharing EDI schemas
US8725759B2 (en) Exposing data through simple object access protocol messages
US9742832B2 (en) Transmission apparatus, transmission method, computer-readable storage medium storing transmission program, and relay system
CN104869056A (en) Institution personnel data synchronization method based on relational data separation
US20160171018A1 (en) Append structured data system for maintaining structured format compatibility
JP2009237934A (en) File converting device, and file converting method and program
JP5169610B2 (en) Data collection / delivery device, data collection / delivery system, data collection / delivery method and program
JP6214207B2 (en) Transfer data processing apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150226

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160311

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160517

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160603

R150 Certificate of patent or registration of utility model

Ref document number: 5947622

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250