[
https://issues.apache.org/jira/browse/ARTEMIS-4951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868626#comment-17868626
]
ASF subversion and git services commented on ARTEMIS-4951:
----------------------------------------------------------
Commit c50f0e70018476b4dd62287e3d3880ba78e2d297 in activemq-artemis's branch
refs/heads/main from Domenico Francesco Bruscino
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=c50f0e7001 ]
ARTEMIS-4951 Support multiple connection router occurrences with same policy
> Multiple connection router occurrences with same policy cause parser error
> --------------------------------------------------------------------------
>
> Key: ARTEMIS-4951
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4951
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Domenico Francesco Bruscino
> Assignee: Domenico Francesco Bruscino
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When the broker.xml includes multiple connection router occurrences with the
> same policy the parser fails:
> {code:xml}
> <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>
> {code}
> {code:java}
> AMQ214019: Invalid configuration
> Caused by: org.xml.sax.SAXParseException; cvc-id.2: There are multiple
> occurrences of ID value 'ROUND_ROBIN'.
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact