https://issues.apache.org/jira/browse/AMQ-4198 Include username in ConnectionInfo for ActiveMQ.Advisory.Connection messages

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1415631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christian Posta 2012-11-30 13:42:48 +00:00
parent 3cf129a79f
commit 915d66dec5
1 changed files with 1 additions and 2 deletions

View File

@ -79,9 +79,8 @@ public class AdvisoryBroker extends BrokerFilter {
super.addConnection(context, info);
ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic();
//do not distribute usernames or passwords in advisory
// do not distribute passwords in advisory messages. usernames okay
ConnectionInfo copy = info.copy();
copy.setUserName("");
copy.setPassword("");
fireAdvisory(context, topic, copy);
connections.put(copy.getConnectionId(), copy);