Returns an MBeanServerConnection
object representing a remote MBean server. For a given JMXConnector
, two successful calls to this method will usually return the same MBeanServerConnection
object, though this is not required.
For each method in the returned MBeanServerConnection
, calling the method causes the corresponding method to be called in the remote MBean server. The value returned by the MBean server method is the value returned to the client. If the MBean server method produces an Exception
, the same Exception
is seen by the client. If the MBean server method, or the attempt to call it, produces an Error
, the Error
is wrapped in a JMXServerErrorException
, which is seen by the client.
Calling this method is equivalent to calling getMBeanServerConnection(null)
meaning that no delegation subject is specified and that all the operations called on the MBeanServerConnection
must use the authenticated subject, if any.