Quantcast

JMX url in master/slave mode

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JMX url in master/slave mode

kpdude7
How would someone programmatically access the correct JMX server in this master/slave configuration? For example, I have the JMX url:

service:jmx:rmi:///jndi/rmi://${jmxTransferUrl}/jmxrmi

My JMS is using a failover url:
failover:(ssl://10.91.5.190:61616,ssl://10.91.5.115:61616)

What value should be substituted for ${jmxTransferUrl} above? Do I have to try each IP in the failover url manually and catch an exception before trying the next one? Is there another way to do this?

Thanks,
Kyle
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JMX url in master/slave mode

Steve Hill
I would recommend using a load balancer. You would put both up addresses in the load balancer.

Thanks

Sent from my iPhone

> On May 19, 2017, at 3:17 PM, kpdude7 <[hidden email]> wrote:
>
> How would someone programmatically access the correct JMX server in this
> master/slave configuration? For example, I have the JMX url:
>
> service:jmx:rmi:///jndi/rmi://${jmxTransferUrl}/jmxrmi
>
> My JMS is using a failover url:
> failover:(ssl://10.91.5.190:61616,ssl://10.91.5.115:61616)
>
> What value should be substituted for ${jmxTransferUrl} above? Do I have to
> try each IP in the failover url manually and catch an exception before
> trying the next one? Is there another way to do this?
>
> Thanks,
> Kyle
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/JMX-url-in-master-slave-mode-tp4726404.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Loading...