mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-08 02:59:14 +00:00
FQQN support for the CLI was implemented via ARTEMIS-1840 before general FQQN support was added for producers via ARTEMIS-1867. The CLI's FQQN functionality is slightly different from what is now generally available and it can be confusing for users. By refactoring the CLI to use the general FQQN support the code can be much simpler and consistent with the expected behavior. Refactoring includes: - Deprecating the use of "fqqn://". The CLI commands use JMS so using "fqqn://" (instead of "queue://" or "topic://") makes the destination type ambiguous which can yield unexpected message routing behavior. Now "queue://" and "topic://" can be used with the normal FQQN syntax (e.g. address::queue). - Eliminating the use of the _AMQ_ROUTE_TO header when sending messags to an FQQN. The _AMQ_ROUTE_TO header is an internal header used when routing messages over a cluster bridge. Using it in the CLI for FQQN support was a clever hack, but using the general FQQN support eliminates complexity and makes behavior consistent between standalone JMS clients using FQQN and the CLI. - De-duplicating MessageSerializer initialization boilerplate. - Removing limitation where using an FQQN with an anycast address required the same name for the address and queue.