mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@798785 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8274f09dd4
commit
66dd8cdae3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue