servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r513684 - /incubator/servicemix/trunk/core/servicemix-services/src/main/java/org/apache/servicemix/id/IdGenerator.java
Date Fri, 02 Mar 2007 10:07:25 GMT
Author: gnodet
Date: Fri Mar  2 02:07:24 2007
New Revision: 513684

URL: http://svn.apache.org/viewvc?view=rev&rev=513684
Log:
SM-863: Generated ids are too long

Modified:
    incubator/servicemix/trunk/core/servicemix-services/src/main/java/org/apache/servicemix/id/IdGenerator.java

Modified: incubator/servicemix/trunk/core/servicemix-services/src/main/java/org/apache/servicemix/id/IdGenerator.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/core/servicemix-services/src/main/java/org/apache/servicemix/id/IdGenerator.java?view=diff&rev=513684&r1=513683&r2=513684
==============================================================================
--- incubator/servicemix/trunk/core/servicemix-services/src/main/java/org/apache/servicemix/id/IdGenerator.java
(original)
+++ incubator/servicemix/trunk/core/servicemix-services/src/main/java/org/apache/servicemix/id/IdGenerator.java
Fri Mar  2 02:07:24 2007
@@ -54,7 +54,7 @@
 		
 		if ( canAccessSystemProps) {
 			try {
-				hostName = InetAddress.getLocalHost().getHostName();
+				hostName = InetAddress.getLocalHost().getHostAddress();
 				ServerSocket ss = new ServerSocket(0);
 				stub=hostName + "-" + Long.toHexString(ss.getLocalPort() ^ System.currentTimeMillis())
+ "-";
 				Thread.sleep(100);



Mime
View raw message