A
aidy
Hi,
I am attempting to use the jmx4r library to set an MBean attribute.
From here: http://www.infoq.com/news/2007/06/jmx4r-jruby
It looks like jmx4r uses metaprogramming techniques which disposes
with JMX method calls.
However, I am receiving a
`method_missing': undefined method `active ='
exception, when I attempt to set the attribute.
require 'rubygems'
require 'jmx4r'
include JMX
MBean.establish_connection :host => "xxxxx",
ort => 8999
standby_mbean = MBean.find_by_name
"xxx.jmx.monitors:name=hydra.planb.cps,type=JmsQueueStatsMBeanFactory"
standby_mbean.active # == true
begin
standby_mbean.active = false
ensure
MBean.remove_connection
end
Do I need to explicitly invoke an operation?
Thanks
Aidy
I am attempting to use the jmx4r library to set an MBean attribute.
From here: http://www.infoq.com/news/2007/06/jmx4r-jruby
It looks like jmx4r uses metaprogramming techniques which disposes
with JMX method calls.
However, I am receiving a
`method_missing': undefined method `active ='
exception, when I attempt to set the attribute.
require 'rubygems'
require 'jmx4r'
include JMX
MBean.establish_connection :host => "xxxxx",
standby_mbean = MBean.find_by_name
"xxx.jmx.monitors:name=hydra.planb.cps,type=JmsQueueStatsMBeanFactory"
standby_mbean.active # == true
begin
standby_mbean.active = false
ensure
MBean.remove_connection
end
Do I need to explicitly invoke an operation?
Thanks
Aidy