activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r383524 - /incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
Date Mon, 06 Mar 2006 12:22:00 GMT
Author: jstrachan
Date: Mon Mar  6 04:21:57 2006
New Revision: 383524

URL: http://svn.apache.org/viewcvs?rev=383524&view=rev
Log:
patch to ignore blank clientIds in a connectionRequestInfo

Modified:
    incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java

Modified: incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java?rev=383524&r1=383523&r2=383524&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
(original)
+++ incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
Mon Mar  6 04:21:57 2006
@@ -106,7 +106,7 @@
         ActiveMQConnection physicalConnection = (ActiveMQConnection) connectionFactory.createConnection(userName,
password);
 
         String clientId = info.getClientid();
-        if (clientId != null) {
+        if (clientId != null && clientId.length() > 0) {
             physicalConnection.setClientID(clientId);
         }
         return physicalConnection;



Mime
View raw message