From 149a9292c5bf0885e9bea27378263c9c6c3d4d5f Mon Sep 17 00:00:00 2001 From: James Strachan Date: Mon, 6 Mar 2006 12:21:57 +0000 Subject: [PATCH] patch to ignore blank clientIds in a connectionRequestInfo git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383524 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/ra/ActiveMQResourceAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java index 43dffa2356..f009cfbf7c 100755 --- a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java +++ b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java @@ -106,7 +106,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable { 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;