3

Is it possible to create a JMX client that doesn't run on the JVM? From my understanding JMX is a protocol on top of other protocols (like RMI) so it should be possible to create a C or Go client. Any reason why this hasn't been done?

I am aware of Jolokia and realise it can be used as a proxy.

Andrejs
  • 26,885
  • 12
  • 107
  • 96
  • All the code behind JMX is open-source, so I don't see any reason why it wouldn't be possible to reimplement it in a different language. I guess this hasn't been done because there's a lot of code and no one needed it before. – yole Mar 10 '18 at 10:35
  • @yole That's not the question. The question is whether you can write a *client* in another language, not reimplement the whole thing. – user207421 Mar 10 '18 at 22:26
  • Yes, that's what I meant. Reimplementing the whole thing doesn't make sense because it's tied to the JVM internals. – yole Mar 10 '18 at 22:27
  • RMI means serialized java classes. You need to emulate that to work with other platforms. – Thorbjørn Ravn Andersen Mar 19 '18 at 14:39
  • ALso consider looking at https://stackoverflow.com/q/5106847/53897 – Thorbjørn Ravn Andersen Mar 19 '18 at 14:40
  • For sake of clarity, I would recommend jpype for python users. It still instantiates the jvm but it runs under python as well. https://jpype.readthedocs.io/en/latest/ – eagle33322 Feb 20 '19 at 20:50
  • JMX has, or had, an HTTP interface. – user207421 Sep 07 '20 at 02:27

0 Answers0