From 2c3d947b69526a6382bede974208d60ed3a240fe Mon Sep 17 00:00:00 2001 From: Christian Posta Date: Wed, 13 Feb 2013 05:18:21 +0000 Subject: [PATCH] Fix for https://issues.apache.org/jira/browse/AMQ-4309 Add usage limit check when limit for destinations is present git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1445474 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/usage/Usage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java b/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java index e1c74e76c5..83646cc670 100755 --- a/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java +++ b/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java @@ -295,6 +295,10 @@ public abstract class Usage implements Service { if (started.compareAndSet(false, true)){ if (parent != null) { parent.addChild(this); + if(getLimit() > parent.getLimit()) { + LOG.info("Usage({}) limit={} should be smaller than its parent limit={}", + new Object[]{getName(), getLimit(), parent.getLimit()}); + } } for (T t:children) { t.start();