activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Sharma <gaurav.cs.sha...@gmail.com>
Subject Re: [jira] [Comment Edited] (AMQ-4032) Failover-transport like ability for JMX url's
Date Fri, 08 Feb 2013 16:33:53 GMT
If that's the case, then we can close this ticket - why have two ways of achieving the same
effect? I have not tested the RemoteJMXBrokerFacade, going to give it a spin.

On Feb 7, 2013, at 16:27, "Rob Waite (JIRA)" <jira@apache.org> wrote:

> 
>    [ https://issues.apache.org/jira/browse/AMQ-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574099#comment-13574099
] 
> 
> Rob Waite edited comment on AMQ-4032 at 2/8/13 12:25 AM:
> ---------------------------------------------------------
> 
> I maybe misunderstand... but it seems to me that JMX connections through the RemoteJMXBrokerFacade
already supports failover..
> 
> 
> {code}
> String jmxUri = properties.getProperty("jmxUri");
> 
> Properties p = System.getProperties();
> p.setProperty("webconsole.jmx.url", jmxUri);
> 
> brokerProxy = new RemoteJMXBrokerFacade();
> SystemPropertiesConfiguration spc = new SystemPropertiesConfiguration();
> brokerProxy.setConfiguration(spc);
> {code}
> 
> I am able to failover back and forth between the AMQ nodes and the RemoteJMXBrokerFacade
in the client connects to the other node on the next call.
> 
> Is there something I am missing?
> 
>      was (Author: absynthe49):
>    I maybe misunderstand... but it seems to me that JMX connections through the RemoteJMXBrokerFacade
already supports failover..
> 
> 
> {code}
> String jmxUri = properties.getProperty("jmxUri");
> 
> Properties p = System.getProperties();
> p.setProperty("webconsole.jmx.url", jmxUri);
> 
> brokerProxy = new RemoteJMXBrokerFacade();
> SystemPropertiesConfiguration spc = new SystemPropertiesConfiguration();
> brokerProxy.setConfiguration(spc);
> {code}
> 
> I am able to failover back and forth between nodes and the RemoteJMXBrokerFacade connects
to the other node on the next call.
> 
> Is there something I am missing?
> 
>> Failover-transport like ability for JMX url's
>> ---------------------------------------------
>> 
>>                Key: AMQ-4032
>>                URL: https://issues.apache.org/jira/browse/AMQ-4032
>>            Project: ActiveMQ
>>         Issue Type: Improvement
>>         Components: JMX
>>   Affects Versions: 5.6.0
>>           Reporter: Gaurav Sharma
>>             Labels: patch
>>            Fix For: 5.x
>> 
>>        Attachments: AMQ-4032_roughPatch.txt
>> 
>> 
>> For the Master Slave config, just like there exists the Failover
>> Transport for the broker url, support specification of the JMX
>> hosts via configuration:
>> jmxUrl=service:jmx:rmi:///jndi/rmi://<host1>:1616/jmxrmi, service:jmx:rmi:///jndi/rmi://<host2>:1616/jmxrmi,
service:jmx:rmi:///jndi/rmi://<host3>:1616/jmxrmi
>> so that users do not have to worry about managing 3 MBeanServerConnection's
>> in code and then trying to figure which one is the master or which
>> one is alive, worry about re-election, etc.
> 
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message