If you're using JMX for management then you can use the getConnectorConfigurations()
method on the ActiveMQServerControl
.
If you're using EmbeddedActiveMQ
then you can use embeddedActiveMQ.getActiveMQServer().getConfiguration().getConnectorConfigurations().values()
. That will give you a Collection<TransportConfiguration>
of the connectors which you've configured.
The difference between acceptors and connectors in this context is that an acceptor is standalone resource which is deployed and managed independently of anything else. A connector, on the other hand, is essentially just a configuration container which is referenced and used by other components (e.g. a bridge). A connector is not deployed in and of itself.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…