Presenting Serialysis, a library that allows you to disassemble
the serial form of Java objects. This can allow you to retrieve
information about an object that is not available through its
public API. It is also a useful tool when testing the
serialization of your classes.
map between arbitrary Java types and a fixed set of types in href="http://java.sun.com/javase/6/docs/api/javax/management/openmbean/package-summary.html">javax.management.openmbean
called the Open Types.
One question I encounter frequently about the JMX Remote API is
how to reduce the time taken to notice that a remote machine is
dead when making a connection to it. The default timeout is
typically a couple of minutes! Here's one way to do it.
I described the background to this JSR in an earlier blog entry. In short, it serves two purposes:
Sometimes you need to clone objects, and sometimes you can't
use their clone method, and sometimes serialization provides an
alternative. Here's an explanation of when you might need this
exotic and expensive technique, and how you can use it.
If you've ever made a serious effort to get rid of "unchecked" warnings from the Java compiler (the ones it gives you with -Xlint:unchecked) then you'll probably have found some cases where you know a cast is correct but you can't convince the compiler of it. Is there anything better than adding @SuppressWarnings("unchecked") around the whole method?
One curiosity about Model MBeans is that attributes also appear
as operations. Is there any way to avoid that?
One of the features planned for version 2.0 of the JMX API
is cascading, also known as federation.
Here's what it is, and how you can build a simplified form of
the same thing without waiting for 2.0.