[ https://issues.apache.org/jira/browse/ARTEMIS-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499147#comment-17499147 ]
Justin Bertram commented on ARTEMIS-3699: ----------------------------------------- This is starting to make sense now. :) When I first read the description the two things (i.e. getting the acceptor config & using port 0) seemed separate, but it seems they are closely linked. In short, it _is_ possible to configure an {{acceptor}} to use port {{0}}. However, there is currently no way to determine the value of the selected ephemeral port. > 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)