SubscriptionInfo[] infos= destinationFactory.getAllDurableSubscriptions((ActiveMQTopic) dest);
if(infos!=null){
for(int i=0;i<infos.length;i++){
SubscriptionInfo info=infos[i];
log.debug("Restoring durable subscription: "+infos);
SubscriptionKey key=new SubscriptionKey(info);
subscriptions.put(key,info);
}
}
}
}
}
for(Iterator i=subscriptions.entrySet().iterator();i.hasNext();){
Map.Entry entry=(Entry) i.next();
SubscriptionKey key=(SubscriptionKey) entry.getKey();
SubscriptionInfo info=(SubscriptionInfo) entry.getValue();
addInactiveSubscription(key,info);
}
}