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
This commit is contained in:
Christian Posta 2013-02-13 05:18:21 +00:00
parent 2a64e88bd0
commit 2c3d947b69
1 changed files with 4 additions and 0 deletions

View File

@ -295,6 +295,10 @@ public abstract class Usage<T extends 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();