You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using your most excellent plugin with JBoss Fuse/Karaf.
Unfortunately, I cannot use the code directly, it requires some modification. Karaf has a specific URL syntax required to connect, using host and port does not work.
@logger.debug('Check if jmx connection need a user/password')
if thread_hash_conf.has_key?('username') and thread_hash_conf.has_key?('password')
@logger.debug("Connect to #{thread_hash_conf['host']}:#{thread_hash_conf['port']} with user #{thread_hash_conf['username']}")
jmx_connection = JMX::MBean.connection :host => thread_hash_conf['host'],
:port => thread_hash_conf['port'],
:url => thread_hash_conf['url'],
:username => thread_hash_conf['username'],
:password => thread_hash_conf['password']
I simply added the option to pass url in from the JMX configuration file. This overrides the host and port and they are ignored by jmx4r, so more work could be done to NOT require host and port in the config if URL is provided. An example config that works is shown below.
I am using your most excellent plugin with JBoss Fuse/Karaf.
Unfortunately, I cannot use the code directly, it requires some modification. Karaf has a specific URL syntax required to connect, using host and port does not work.
I simply added the option to pass url in from the JMX configuration file. This overrides the host and port and they are ignored by jmx4r, so more work could be done to NOT require host and port in the config if URL is provided. An example config that works is shown below.
The text was updated successfully, but these errors were encountered: