<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=JANUS_ADDCOORDINATOR</id>
	<title>JANUS ADDCOORDINATOR - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=JANUS_ADDCOORDINATOR"/>
	<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=JANUS_ADDCOORDINATOR&amp;action=history"/>
	<updated>2026-04-07T05:09:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=JANUS_ADDCOORDINATOR&amp;diff=117795&amp;oldid=prev</id>
		<title>Alex: /* Janus two-phase commit example */</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=JANUS_ADDCOORDINATOR&amp;diff=117795&amp;oldid=prev"/>
		<updated>2020-01-13T12:46:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Janus two-phase commit example&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:46, 13 January 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example defined a 2PC port and associates a coordinator called COORD with it:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example defined a 2PC port and associates a coordinator called COORD with it:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p class=&quot;code&quot;&amp;gt;JANUS DEFINE TWOPC 2PC &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p class=&quot;code&quot;&amp;gt;JANUS DEFINE TWOPC &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;2PC &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;JANUS ADDCOORD TWOPC COORD IMAGINEHOST.MYDOMAIN.COM 4567&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;JANUS ADDCOORD TWOPC COORD IMAGINEHOST.MYDOMAIN.COM 4567&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While additional coordinators can be defined as in&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While additional coordinators can be defined as in&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p class=&quot;code&quot;&amp;gt;JANUS DEFINE TWOPC 2PC &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p class=&quot;code&quot;&amp;gt;JANUS DEFINE TWOPC &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;2PC &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20 &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;JANUS ADDCOORD TWOPC COORD IMAGINEHOST.MYDOMAIN.COM 4567&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;JANUS ADDCOORD TWOPC COORD IMAGINEHOST.MYDOMAIN.COM 4567&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;JANUS ADDCOORD TWOPC COORD2 IMAGINEHOST2.MYDOMAIN.COM 4567&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;JANUS ADDCOORD TWOPC COORD2 IMAGINEHOST2.MYDOMAIN.COM 4567&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=JANUS_ADDCOORDINATOR&amp;diff=117792&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;{{DISPLAYTITLE:JANUS ADDCOORDINATOR}} &lt;span class=&quot;pageSubtitle&quot;&gt;Add a two-phase commit coordinator to a 2PC port.&lt;/span&gt;  See &lt;var&gt;JANUS DEFINE&lt;/var&gt; for a discussion of...&quot;</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=JANUS_ADDCOORDINATOR&amp;diff=117792&amp;oldid=prev"/>
		<updated>2020-01-13T04:15:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:JANUS ADDCOORDINATOR}} &amp;lt;span class=&amp;quot;pageSubtitle&amp;quot;&amp;gt;Add a two-phase commit coordinator to a 2PC port.&amp;lt;/span&amp;gt;  See &amp;lt;var&amp;gt;&lt;a href=&quot;/index.php?title=JANUS_DEFINE&quot; title=&quot;JANUS DEFINE&quot;&gt;JANUS DEFINE&lt;/a&gt;&amp;lt;/var&amp;gt; for a discussion of...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:JANUS ADDCOORDINATOR}}&lt;br /&gt;
&amp;lt;span class=&amp;quot;pageSubtitle&amp;quot;&amp;gt;Add a two-phase commit coordinator to a 2PC port.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See &amp;lt;var&amp;gt;[[JANUS DEFINE]]&amp;lt;/var&amp;gt; for a discussion of when you need to issue the &amp;lt;var&amp;gt;JANUS DEFINE&amp;lt;/var&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;p class=&amp;quot;syntax&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;literal&amp;quot;&amp;gt;JANUS ADDCOORDINATOR &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;portName coordinatorName host portnum &amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where each of the first four parameters is positional and required:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;syntaxTable&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;portName&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;The name of the Janus 2PC port(s) to which the coordinator is being added. Wildcard characters may be used in &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;portName&amp;lt;/var&amp;gt;, indicating that the coordinator is to be added to all previously defined &amp;lt;var&amp;gt;2PC&amp;lt;/var&amp;gt; ports matching the pattern. There must be at least one previously defined &amp;lt;var&amp;gt;2PC&amp;lt;/var&amp;gt; port matching &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;portName&amp;lt;/var&amp;gt;. Any ports which match &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;portName&amp;lt;/var&amp;gt; but have not yet been defined will not have &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;coordinatorName&amp;lt;/var&amp;gt; added when they are subsequently defined. Note though that it doesn&amp;#039;t really make sense to have multiple 2PC ports anyway since only the first started 2PC port will be used.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;coordinatorName&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;A 1-30 character name for the coordinator to which this Janus port will connect for two-phase commit services. The remote server must be an &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;Imgine Two-Pase Commit Coordinator&amp;lt;/var&amp;gt;.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;host&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;The IP address or hostname for the device on which the coordinator specified by &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;coordinatorName&amp;lt;/var&amp;gt; is running.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;portnum&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;The port number to which to connect to the coordinator on &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;host&amp;lt;/var&amp;gt;.&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;ADDCOORD&amp;lt;/var&amp;gt; is a valid abbreviation for &amp;lt;var&amp;gt;ADDCOORDINATOR&amp;lt;/var&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Janus two-phase commit example==&lt;br /&gt;
&lt;br /&gt;
The following example defined a 2PC port and associates a coordinator called COORD with it:&lt;br /&gt;
&amp;lt;p class=&amp;quot;code&amp;quot;&amp;gt;JANUS DEFINE TWOPC 2PC * &lt;br /&gt;
JANUS ADDCOORD TWOPC COORD IMAGINEHOST.MYDOMAIN.COM 4567&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While additional coordinators can be defined as in&lt;br /&gt;
&amp;lt;p class=&amp;quot;code&amp;quot;&amp;gt;JANUS DEFINE TWOPC 2PC * &lt;br /&gt;
JANUS ADDCOORD TWOPC COORD IMAGINEHOST.MYDOMAIN.COM 4567&lt;br /&gt;
JANUS ADDCOORD TWOPC COORD2 IMAGINEHOST2.MYDOMAIN.COM 4567&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
the coordinators &amp;lt;b&amp;gt;must&amp;lt;/b&amp;gt; be &amp;lt;var&amp;gt;Imagine&amp;lt;/var&amp;gt; servers that share the same &amp;lt;var&amp;gt;DatabaseStore&amp;lt;/var&amp;gt;. Janus will attempt to split the load approximately evenly among all coordinators added to a port.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[List_of_Janus_commands|Janus command list]]&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Janus commands]]&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>