MethodInterceptor that routes calls to an
MBean running on the supplied MBeanServerConnection.
Works for both local and remote MBeanServerConnections.

By default, the MBeanClientInterceptor will connect to the
MBeanServer and cache MBean metadata at startup. This can
be undesirable when running against a remote MBeanServer
that may not be running when the application starts. Through setting the
connectOnStartup property to "false",
you can defer this process until the first invocation against the proxy.

Requires JMX 1.2's MBeanServerConnection feature.
As a consequence, this class will not work on JMX 1.0.

This functionality is usually used through MBeanProxyFactoryBean.
See the javadoc of that class for more information.

invoke

Route the invocation to the configured managed resource. Correctly routes JavaBean property
access to MBeanServerConnection.get/setAttribute and method invocation to
MBeanServerConnection.invoke. Any attempt to invoke a method that does not
correspond to an attribute or operation defined in the management interface of the managed
resource results in an InvalidInvocationException.