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
This commit is contained in:
James Strachan 2006-03-06 12:21:57 +00:00
parent 3d96abcc93
commit 149a9292c5
1 changed files with 1 additions and 1 deletions

View File

@ -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;