activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Obtaining URLs of ActiveMQ instances
Date Mon, 19 Dec 2011 13:11:03 GMT
peek at org.apache.activemq.transport.failover.FailoverTransportFactory#doConnect
and the use of org.apache.activemq.util.URISupport#parseComposite
and org.apache.activemq.util.URISupport.CompositeData#getComponents

a failover url with comma separated transport urls is a composite

On 19 December 2011 13:00, Stevo Slavić <> wrote:
> Hello ActiveMQ community,
> Is there an API in ActiveMQ that can be reused to parse broker URL string
> and determine URL of each broker?
> I have clients (producers and consumers) configured to access two
> master/slave brokers using failover protocol via a property, but would like
> to get urls of each one of them from the same config property. Need to
> implement checking whether both brokers are masters or both are down and
> perform some alarming/notifications about invalid/unexpected state. I can
> always implement some custom URL parsing, but would prefer to reuse any
> logic already built in ActiveMQ.
> Regards,
> Stevo.


View raw message