I have a legacy system on my hands with a propriatary protocol on top of tcp. I now need to add JMX support for this application. Due to firewall issues and company policies, I can not get RMI or IIOP ports to target JVM opened, so I would need to use the legacy protocol as JMX transport.
On the server (target) side, I can create a MBeanServer via MBeanServerFactory.createMBeanServer(), and the register my MBeans to it. But how can I use existing tools, e.g. JConsole, to connect to my server via the legacy protocol?
I have already tried to implement my own MBeanServerBuilder, added it to JConsole classpath and set the "+-J-Djavax.management.builder.initial+" -property, but this did not do the trick.
We're still on Java 5.