Modularising config into separate files for elements with simple type.

Solution Verified - Updated -


  • We are trying to modularize certains configs in broker.xml according to this doc
  • This works fine for acceptors which is a complex element, however when I try to do the same for persistence-enabled which is a simple elements, I see the following.
  • Content of module1.xml
<persistence-enabled xmlns="urn:activemq:core">false</persistence-enabled>
  • broker.xml includes that file
   <xi:include href="/path/to/broker/etc/module1.xml"/>
  • Error is see in the log is
2020-02-20 14:21:43,123 ERROR [org.apache.activemq.artemis.core.server] cvc-type.3.1.1: Element 'persistence-enabled' is a simple type, so it cannot have attributes, excepting those whose namespace name is identical to '' and whose [local name] is one of 'type', 'nil', 'schemaLocation' or 'noNamespaceSchemaLocation'. However, the attribute, 'xml:base' was found.
  • Is there another way of defining the namespace for these elements?


  • Red Hat AMQ
    • 7.2.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In