Skip to content

Commit

Permalink
ARTEMIS-1661 Support splitting of broker.xml
Browse files Browse the repository at this point in the history
Support XML standard XInclude thus allowing splitting of the broker.xml
Added test cases with split out config using include.
  • Loading branch information
michaelandrepearce committed Feb 27, 2018
1 parent 706abe8 commit 9222b2e
Show file tree
Hide file tree
Showing 11 changed files with 602 additions and 6 deletions.
Expand Up @@ -20,6 +20,7 @@ under the License.

<configuration xmlns="urn:activemq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xi="http://www.w3.org/2001/XInclude"
xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd">

<core xmlns="urn:activemq:core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
Expand Up @@ -85,6 +85,7 @@ public static Element readerToElement(final Reader r) throws Exception {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
// see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6529766
factory.setNamespaceAware(true);
factory.setXIncludeAware(true);
DocumentBuilder parser = factory.newDocumentBuilder();
Document doc = parser.parse(new InputSource(sreader));
return doc.getDocumentElement();
Expand Down

0 comments on commit 9222b2e

Please sign in to comment.