Add management filter to Queue not Consumer MQTT

This commit is contained in:
Martyn Taylor 2016-07-26 11:24:16 +01:00 committed by Andy Taylor
parent 6cb681555a
commit 69294e83e1
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class MQTTSubscriptionManager {
Queue q = session.getServer().locateQueue(queue);
if (q == null) {
session.getServerSession().createQueue(new SimpleString(address), queue, null, false, MQTTUtil.DURABLE_MESSAGES && qos >= 0);
session.getServerSession().createQueue(new SimpleString(address), queue, managementFilter, false, MQTTUtil.DURABLE_MESSAGES && qos >= 0);
}
return queue;
}
@ -102,7 +102,7 @@ public class MQTTSubscriptionManager {
*/
private void createConsumerForSubscriptionQueue(SimpleString queue, String topic, int qos) throws Exception {
long cid = session.getServer().getStorageManager().generateID();
ServerConsumer consumer = session.getServerSession().createConsumer(cid, queue, managementFilter, false, true, -1);
ServerConsumer consumer = session.getServerSession().createConsumer(cid, queue, null, false, true, -1);
consumer.setStarted(true);
consumers.put(topic, consumer);