SGF-374 - Specifying a disk-store on a GatewayHub forces the GatewayHub to be persistent.

This commit is contained in:
John Blum
2015-02-24 14:21:22 -08:00
parent 975aa80785
commit a5b743989b
11 changed files with 805 additions and 37 deletions

View File

@@ -129,9 +129,6 @@ public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean<Gatew
queueAttributes.setEnablePersistence(queue.getPersistent());
if (queue.getDiskStoreRef() != null) {
// TODO what about "overflow"?
boolean persistent = (queue.getPersistent() == null || queue.getPersistent());
Assert.isTrue(persistent, "specifying a disk store requires persistent property to be true");
queueAttributes.setDiskStoreName(queue.getDiskStoreRef());
}
}