Janus Two-Phase Commit

From m204wiki
Revision as of 03:33, 13 January 2020 by Alex (talk | contribs) (Created page with "Janus Two-Phase Commit support allows transactions running in multiple <var class="product">Model 204</var> Onlines to participate in a single global transaction using the [ht...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Janus Two-Phase Commit support allows transactions running in multiple Model 204 Onlines to participate in a single global transaction using the two-phase commit protocol. In addition, it enables Model 204 to participate in a global transaction with an Imagine database server. An Imagine Two-Phase Commit Coordinator is required to act as the two-phase commit coordinator. JANUS commands are used to define and start a two-phase commit port. Since there is no way to specify a 2PC port on two-phase commit related statements and functions, there is no point in specifying more than one 2PC port – if more than one is specified the first started 2PC port is always used.

Configuring Janus Two-Phase Commit

These are the configuaration steps:

  1. Using a JANUS DEFINE command, define a Janus 2PC that will be used to communicate with the coordinator. The following is a typical command for a two-phase commit port:

    JANUS DEFINE TWOPC * 2PC 10

  2. Specify the host address or name and port number for the coordinator. This is done with the JANUS ADDCOORDINATOR command as in:

    JANUS ADDCOORDINATOR TWOPC IMAGINE IMAGINEHOST.MYDOMAIN.COM 3456

    If, as in this example, the coordinator host is specified as a name, a name server must be specified using the JANUS NAMESERVER command.