[jboss-dev-forums] [JBoss Transactions Development] - Re: Remote txinflow: XID changes

David Lloyd do-not-reply at jboss.com
Fri Oct 21 12:31:25 EDT 2011


David Lloyd [http://community.jboss.org/people/dmlloyd] created the discussion

"Re: Remote txinflow: XID changes"

To view the discussion, visit: http://community.jboss.org/message/633073#633073

--------------------------------------------------------------
OK, unfortunately it isn't acceptable to require the user to configure int values like this.  But... what about this idea?

Basically you're looking for approximately 32 bits of uniqueness right?  Well a node name is based on host name, which is ultimately based off of DNS labels.  A DNS label can contain one of 26 letters, one of 10 digits, a "-", or a "." (but cannot start or end in "-" or ".").  This means that a single character has only 38 possible values, which means you can fit about 6 of them into 32 bits, if you squeeze really hard.

Perhaps we can set it up so that we have just a couple more bits - maybe 42, which would be just enough for 8 characters - and default it to the compressed node name, and if the node name is greater than 8 characters we can print a warning and suggest that the user choose a unique 8-character name?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/633073#633073]

Start a new discussion in JBoss Transactions Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111021/2bdf1bb1/attachment.html 


More information about the jboss-dev-forums mailing list