Fix for AMQ-5652: IdGenerator not optimal in port restricted environments.

We now support configuring via system props activemq.idgenerator.hostname and activemq.idgenerator.localport which are used as the base part of GUIDs.
This commit is contained in:
Hiram Chirino 2015-03-09 13:54:42 -04:00
parent b9b566918e
commit 638c1e44b1
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class IdGenerator {
int idGeneratorPort = 0; int idGeneratorPort = 0;
ServerSocket ss = null; ServerSocket ss = null;
try { try {
if( hostName!=null ) { if( hostName==null ) {
hostName = InetAddressUtil.getLocalHostName(); hostName = InetAddressUtil.getLocalHostName();
} }
if( localPort==0 ) { if( localPort==0 ) {