enebo/jmx

Gem doesn't allow specifying a service url

Opened this issue · 0 comments

There is no option to specify a full service URL in place of a hostname and port. This is useful when accessing JMX through a firewall.

changing the options to something like:
url = opts[:raw_url] || "service:jmx:rmi:///jndi/rmi://#{host}:#{port}#{url_path}"

would allow you to use a service url such as: service:jmx:rmi://:10002/jndi/rmi://:10001/jmxrmi