Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.3
-
Security Level: public (Regular issues)
-
None
-
multiple JVMs on single machine
-
Patch Available
Description
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.