My colleague Nick Stephen has written an excellent and detailed article about Virtual MBeans. This is one of the features we are looking at adding in JSR 255. Nick shows why the feature is interesting, and how you can implement it today using the MBeanServerBuilder hook from the JMX API.
In my last
entry, I mentioned that I had reimplemented the RMI
registry portably, before discovering that there was a much
simpler solution to the security problem I was addressing.
Here's the reimplementation for what it's worth. It allows you
to go further than the socket factory hack. And if you ever
need to understand gory details of the RMI protocol, this...