[ https://issues.apache.org/jira/browse/ARTEMIS-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499048#comment-17499048 ]
Robbie Gemmell commented on ARTEMIS-3699: ----------------------------------------- I guess he means a way of asking what port the broker is using for an acceptor when armed with e.g the embedded broker instance. The typical case for port 0 is to allow reliably starting on a free port without knowing or caring what it is in advance, then determining what was used, and utilising that information afterwards. Tests are a frequent user of this pattern, enabling avoiding use of well-known ports and using random free ports to allow running them both alongside non-test uses of the same components and also different tests at the same time. The Artemis test suite tends to foul in both those situations as it mostly doesnt do this, which is annoying. > EmbeddedActiveMQ port configuration > ----------------------------------- > > Key: ARTEMIS-3699 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3699 > Project: ActiveMQ Artemis > Issue Type: Improvement > Reporter: Robin > Priority: Minor > > When creating an instance of EmbeddedActiveMQ the port that the broker binds > to is taken from the acceptor uri supplied to the configuration. Afterwards > there is no easy way to get the port out of the broker instance. In addition, > it would have been nice if one could provide 0 for port to have it start up > on a random available port. Could this be implemented? > -- This message was sent by Atlassian Jira (v8.20.1#820001)