git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@798785 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2009-07-29 05:24:24 +00:00
parent 8274f09dd4
commit 66dd8cdae3
1 changed files with 6 additions and 2 deletions

View File

@ -77,8 +77,12 @@ public class AdvisoryBroker extends BrokerFilter {
super.addConnection(context, info);
ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic();
fireAdvisory(context, topic, info);
connections.put(info.getConnectionId(), info);
//do not distribute usernames or passwords in advisory
ConnectionInfo copy = info.copy();
copy.setUserName("");
copy.setPassword("");
fireAdvisory(context, topic, copy);
connections.put(copy.getConnectionId(), copy);
}
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {