<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Remote txinflow: XID changes
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/tomjenkinson">Tom Jenkinson</a> in <i>JBoss Transactions Development</i> - <a href="http://community.jboss.org/message/633157#633157">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi David,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I was wondering about something like that (i.e. reducing the "domain" of the character space). The main reason I backed out is a point I raised earlier:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>"node names must be unique per instance"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This means that the host name (or a derivative thereof) is not unique enough. Lets say you have two instances on the same machine, lets say we got it into 42 bits (although to be fair we could allocate 6 bytes per name if that helped - 28 for the Uid, 6 per node name leaving 24 bytes for the EISname). Anyway lets say the name was "foo".</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If you start up two servers with the node name "foo" you can't flow transactions between them as the node identifier is the same, fairly clear if "foo" is on a different server, but potentially it could be on the same server, i.e. the user could start up more than one instance on host "foo". Hence you would need to configure node identifiers to be "foo1" and "foo2" anyway, leading to an integer and therefore leading to needing to configure this integer somewhere (presumably the same place where the integer I was talking about would need to be - a central configuration repository). You see the node identifier defines who "owns" transaction logs (this is an exisiting requirement - not new for this release). If you are thinking about some kind of "launch counter" where we could launch servers with a locally incremented suffix (as I would be <span> :) </span> ) then that isn't really good enough as the user would want to deterministically know the server they are launching to know which transactions are going to be restored.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>The other issue is that hostnames may be none roman alphabet leading to quite a few more options, take the servers listed on: </span><a class="jive-link-external-small" href="http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Test_TLDs" target="_blank">http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Test_TLDs</a><span> or the ones from </span><a class="jive-link-external-small" href="http://www.w3.org/2003/Talks/0425-duerst-idniri/slide12-0.html" target="_blank">http://www.w3.org/2003/Talks/0425-duerst-idniri/slide12-0.html</a><span> such as </span><a class="jive-link-external-small" href="http://räksmörgås.josefsson.org/" target="_blank">http://räksmörgås.josefsson.org/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Also, arguably by asking the user to "choose a unique 8-character name" we might as well ask them to choose a unique int instead?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Just to clarify, this requirement for unique node names is an exisiting requirement of JBoss Transactions, but in the JTA none-shared object store scenario it has been sufficient to give the same node identifier.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Tom</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/633157#633157">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Transactions Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>