summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-04-13 11:56:49 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-04-13 11:56:49 +0000
commit78ac305ea8a8d47467d32a80518b8d830e5116af (patch)
tree38459c4e2c939520daa0eb11775f21ed98511ab3 /qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java
parentb8ee522006dc367c8c1e481cdf5cf2874dd74d88 (diff)
downloadqpid-python-78ac305ea8a8d47467d32a80518b8d830e5116af.tar.gz
QPID-430: Fix message age alerting so that it works on queues which are otherwise inactive.
AMQQueue, VirtualHost, MockAMQQueue: change name of removeExpiredIfNoSubscribers to checkMessageStatus. AMQQueueMBean: remove unthrown exception SimpleAMQQueue: add notification checks to checkMessageStatus, remove catch for JMException which checkForNotification no longer throws. NullApplicationRegistry: set small housekeeping check period so that it runs freuqently and tests don't need to sleep for excessive periods of time AMQQueueAlertTest: remove subsequent send, notification alerts shouldn't depend on queue activity. merged from trunk r743357 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5-fix@764421 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java
index 83b18e7a47..88ad87b9c1 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/util/NullApplicationRegistry.java
@@ -49,7 +49,8 @@ public class NullApplicationRegistry extends ApplicationRegistry
_logger.info("Initialising NullApplicationRegistry");
_configuration.addProperty("store.class", "org.apache.qpid.server.store.MemoryMessageStore");
-
+ _configuration.addProperty("housekeeping.expiredMessageCheckPeriod", "200");
+
Properties users = new Properties();
users.put("guest", "guest");