ARTEMIS-919 JMS reloader reading core queues
This commit is contained in:
parent
fbdac0c97d
commit
b582524017
|
@ -102,6 +102,7 @@ import org.apache.activemq.artemis.utils.TypedProperties;
|
||||||
import org.apache.activemq.artemis.utils.XMLUtil;
|
import org.apache.activemq.artemis.utils.XMLUtil;
|
||||||
import org.jboss.logging.Logger;
|
import org.jboss.logging.Logger;
|
||||||
import org.w3c.dom.Element;
|
import org.w3c.dom.Element;
|
||||||
|
import org.w3c.dom.NodeList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Deployer used to create and add to Bindings queues, topics and connection
|
* A Deployer used to create and add to Bindings queues, topics and connection
|
||||||
|
@ -1748,11 +1749,13 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
|
||||||
Element e = XMLUtil.stringToElement(xml);
|
Element e = XMLUtil.stringToElement(xml);
|
||||||
|
|
||||||
if (config instanceof FileJMSConfiguration) {
|
if (config instanceof FileJMSConfiguration) {
|
||||||
((FileJMSConfiguration) config).parse(e, url);
|
NodeList children = e.getElementsByTagName("jms");
|
||||||
|
//if the "jms" element exists then parse it
|
||||||
JMSServerManagerImpl.this.deploy();
|
if (children.getLength() > 0) {
|
||||||
|
((FileJMSConfiguration) config).parse((Element) children.item(0), url);
|
||||||
|
JMSServerManagerImpl.this.deploy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue