for (Map.Entry<QueueSession, MessageQueue> entry : messageQueues.entrySet()) {
busMonitor.notifyQueueAttached(entry.getKey().getSessionId(), entry.getValue());
}
for (String subject : subscriptions.keySet()) {
busMonitor.notifyNewSubscriptionEvent(new SubscriptionEvent(false, "None", 1, false, subject));
}
for (Map.Entry<String, RemoteMessageCallback> entry : remoteSubscriptions.entrySet()) {
for (MessageQueue queue : entry.getValue().getQueues()) {
busMonitor.notifyNewSubscriptionEvent(new SubscriptionEvent(true, queue.getSession().getSessionId(), 1, false, entry.getKey()));
}
}
monitor.attach(this);
}