JMX uses java serialization to transfer arguments and operation results. Even if the class was Serializable
you'd need it on the client's classpath.
There is no solution except adding an operation that renders the object as, say, a String. If you are lucky, you can use toString()
but if the object hasn't overridden Object.toString()
, you'll have to roll your own.