geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-4393) Duplicate Xid with multiple JVMs on single host - default impl needs some 'random' entropy
Date Mon, 03 Nov 2008 12:01:44 GMT
Duplicate Xid with multiple JVMs on single host - default impl needs some 'random' entropy
------------------------------------------------------------------------------------------

                 Key: GERONIMO-4393
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4393
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: transaction manager
    Affects Versions: 2.1.3
         Environment: multiple JVMs on single machine
            Reporter: Gary Tully


the default generation of baseId in XidFactoryImpl is not sufficient for multiple JVMs on
a single node. There needs to be some entropy in the form of a few Random bytes to ensure
that ids are different because given a duplication of code, the hashCode of the XidFactoryImpl
will not be unique across the JVMs and given a single node, the IP addresss will be shared.


This emerged via https://issues.apache.org/activemq/browse/AMQ-1824 where the workaround was
to pass in the baseId as a constructor arg via spring.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message