Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4951

Multiple connection router occurrences with same policy cause parser error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.36.0
    • None
    • None

    Description

      When the broker.xml includes multiple connection router occurrences with the same policy the parser fails:

            <connection-routers>
               <connection-router name="evenly-balance">
                  <key-type>CLIENT_ID</key-type>
                  <key-filter>^.{3}</key-filter>
                  <policy name="ROUND_ROBIN"/>
                  <pool>
                     <username>xxx</username>
                     <password>yyy</password>
                     <static-connectors>
                        <connector-ref>server1</connector-ref>
                        <connector-ref>server2</connector-ref>
                     </static-connectors>
                  </pool>
               </connection-router>
               <connection-router name="router-hmg">
                  <key-type>CLIENT_ID</key-type>
                  <key-filter>^.{3}</key-filter>
                  <policy name="ROUND_ROBIN"/>
                  <pool>
                     <username>zzz</username>
                     <password>ccc</password>
                     <static-connectors>
                        <connector-ref>server3</connector-ref>
                        <connector-ref>server4</connector-ref>
                     </static-connectors>
                  </pool>
               </connection-router>
            </connection-routers>
      
      
      AMQ214019: Invalid configuration
      
      Caused by: org.xml.sax.SAXParseException; cvc-id.2: There are multiple occurrences of ID value 'ROUND_ROBIN'.
      

      Attachments

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              brusdev Domenico Francesco Bruscino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m