[ 
https://issues.apache.org/jira/browse/ARTEMIS-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499157#comment-17499157
 ] 

Robin commented on ARTEMIS-3699:
--------------------------------

Robbie has understood my use case exactly. It is very convenient for 
integration testing.

The acceptor configuration is a Map<String, Object>. I would have to cast it to 
a String first and then parse it as an int. It is ugly and clunky and that is 
what I mean that there is "no easy" way. Anyways, can I be assured that this 
port is actually the one that is being used?

 

> 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)

Reply via email to