开发者

JMX client accessible locally only

I want to create a JMX agent that has to be accessible from local host only.

  • Please advise how can I do that.
  • Also help with a Simple JMX client on same machine that will connect to that JMX agent.
  • If somehow we can get away with specifying an开发者_StackOverflow中文版 explicit port, that will be helpful.


You might find this helpful. It uses the attach API for Oracle's JVM to connect to a running Java process and have it start a local only JMX agent. You would setup whatever MBeans you want to expose as usual. I get the impression that this code is similar to what JConsole does for connecting to local JVM processes. You might also want to investigate the source for Jmxterm which leverages JConsole for connecting to local JVM processes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜