Commit ea5c054c authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #593 from surevine/dwd/OF-1141

OF-1141 Fix default configuration of PEP/PubSub
parents b719c7d6 82ae779d
...@@ -155,7 +155,7 @@ public class PEPService implements PubSubService, Cacheable { ...@@ -155,7 +155,7 @@ public class PEPService implements PubSubService, Cacheable {
leafDefaultConfiguration.setNotifyDelete(true); leafDefaultConfiguration.setNotifyDelete(true);
leafDefaultConfiguration.setNotifyRetract(true); leafDefaultConfiguration.setNotifyRetract(true);
leafDefaultConfiguration.setPersistPublishedItems(false); leafDefaultConfiguration.setPersistPublishedItems(false);
leafDefaultConfiguration.setMaxPublishedItems(-1); leafDefaultConfiguration.setMaxPublishedItems(1);
leafDefaultConfiguration.setPresenceBasedDelivery(false); leafDefaultConfiguration.setPresenceBasedDelivery(false);
leafDefaultConfiguration.setSendItemSubscribe(true); leafDefaultConfiguration.setSendItemSubscribe(true);
leafDefaultConfiguration.setSubscriptionEnabled(true); leafDefaultConfiguration.setSubscriptionEnabled(true);
......
...@@ -427,7 +427,7 @@ public class PubSubModule extends BasicModule implements ServerItemsProvider, Di ...@@ -427,7 +427,7 @@ public class PubSubModule extends BasicModule implements ServerItemsProvider, Di
leafDefaultConfiguration.setNotifyDelete(true); leafDefaultConfiguration.setNotifyDelete(true);
leafDefaultConfiguration.setNotifyRetract(true); leafDefaultConfiguration.setNotifyRetract(true);
leafDefaultConfiguration.setPersistPublishedItems(false); leafDefaultConfiguration.setPersistPublishedItems(false);
leafDefaultConfiguration.setMaxPublishedItems(-1); leafDefaultConfiguration.setMaxPublishedItems(1);
leafDefaultConfiguration.setPresenceBasedDelivery(false); leafDefaultConfiguration.setPresenceBasedDelivery(false);
leafDefaultConfiguration.setSendItemSubscribe(true); leafDefaultConfiguration.setSendItemSubscribe(true);
leafDefaultConfiguration.setSubscriptionEnabled(true); leafDefaultConfiguration.setSubscriptionEnabled(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment