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