Skip to content

feat(console): add user-friendly CLI commands for queues, topics, broker, and network connectors(#1816).#1966

Open
anmol-saxena-14 wants to merge 1 commit intoapache:mainfrom
anmol-saxena-14:issues-1816
Open

feat(console): add user-friendly CLI commands for queues, topics, broker, and network connectors(#1816).#1966
anmol-saxena-14 wants to merge 1 commit intoapache:mainfrom
anmol-saxena-14:issues-1816

Conversation

@anmol-saxena-14
Copy link
Copy Markdown
Contributor

Adds four new action-oriented CLI commands as described in Issue#1816, making it straightforward to manage a running broker from the shell(and from AI agents such as Claude Code) without requiring JMX tooling.

New commands
activemq queues list | create | delete | purge | info | browse | produce | pause | resume
activemq topics list | create | delete | info
activemq broker info | connectors [list|add|remove] | scheduler
activemq network-connectors list | add | remove

Each command is registered via the existing ServiceLoader SPI (META-INF/services/...Command) so no existing code is modified to discover them.

The consume action is intentionally not implemented in the new commands. Receiving and acknowledging messages requires an active JMS connection,which is outside the scope of the JMX-based CLI facade. The existing activemq consumer command covers that use case.

Tests : 37 new unit tests across BrokerCommandTest, NetworkConnectorsCommandTest, QueuesCommandTest, and TopicsCommandTest covering all actions and error-handling paths.

@anmol-saxena-14 anmol-saxena-14 marked this pull request as ready for review April 26, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant