servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1092574 - /servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixProducer.java
Date Fri, 15 Apr 2011 03:02:28 GMT
Author: ffang
Date: Fri Apr 15 03:02:27 2011
New Revision: 1092574

URL: http://svn.apache.org/viewvc?rev=1092574&view=rev
Log:
[SMX4NMR-270]Use ActiveMQUuidGenerator as the default uuid generator as its faster than the
JDK UUID generator

Modified:
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixProducer.java

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixProducer.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixProducer.java?rev=1092574&r1=1092573&r2=1092574&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixProducer.java
(original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixProducer.java
Fri Apr 15 03:02:27 2011
@@ -22,10 +22,10 @@ import org.apache.camel.impl.DefaultProd
 import org.apache.camel.Exchange;
 import org.apache.servicemix.nmr.api.*;
 import org.apache.servicemix.nmr.api.service.ServiceHelper;
+import org.apache.servicemix.nmr.core.util.UuidGenerator;
 
 import java.util.Collections;
 import java.util.Map;
-import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
 
 /**
@@ -171,7 +171,7 @@ public class ServiceMixProducer extends 
      */
     private Map<String,Object> createEndpointMap() {
         return ServiceHelper.createMap(org.apache.servicemix.nmr.api.Endpoint.NAME,
-                ServiceMixProducer.class.getName() + "-" + UUID.randomUUID(),
+                ServiceMixProducer.class.getName() + "-" + UuidGenerator.getInstance(),
                 TARGET_ENDPOINT_NAME,
                 getEndpoint().getEndpointName());
 



Mime
View raw message