activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject activemq git commit: Fix for AMQ-5652: IdGenerator not optimal in port restricted environments.
Date Mon, 09 Mar 2015 17:54:55 GMT
Repository: activemq
Updated Branches:
  refs/heads/master b9b566918 -> 638c1e44b


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.


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/638c1e44
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/638c1e44
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/638c1e44

Branch: refs/heads/master
Commit: 638c1e44b15f425d71e2c203c43ca104b8a9a16e
Parents: b9b5669
Author: Hiram Chirino <hiram@hiramchirino.com>
Authored: Mon Mar 9 13:54:42 2015 -0400
Committer: Hiram Chirino <hiram@hiramchirino.com>
Committed: Mon Mar 9 13:54:52 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/util/IdGenerator.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/638c1e44/activemq-client/src/main/java/org/apache/activemq/util/IdGenerator.java
----------------------------------------------------------------------
diff --git a/activemq-client/src/main/java/org/apache/activemq/util/IdGenerator.java b/activemq-client/src/main/java/org/apache/activemq/util/IdGenerator.java
index 071a35e..0b29416 100755
--- a/activemq-client/src/main/java/org/apache/activemq/util/IdGenerator.java
+++ b/activemq-client/src/main/java/org/apache/activemq/util/IdGenerator.java
@@ -59,7 +59,7 @@ public class IdGenerator {
             int idGeneratorPort = 0;
             ServerSocket ss = null;
             try {
-                if( hostName!=null ) {
+                if( hostName==null ) {
                     hostName = InetAddressUtil.getLocalHostName();
                 }
                 if( localPort==0 ) {


Mime
View raw message