Uploaded image for project: 'Remoting JMX'
  1. Remoting JMX
  2. REMJMX-47

Refactor the RemotingConnectorServer / JMXConnectorServer to pull initial comms earlier

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Beta1
    • None
    • Connection
    • None

      The JMXConnectorServer implementation is supposed to associate incoming connections with a single MBean server - with the addition of an MBeanServerLocator in addition to the possibility of proxied requests to a remote MBeanServer there is also the possibility of multiple MBeanServers in the same process.

      Once a connection is established the connection is associated with the RemotingConnectorServer so the selection of MBeanServer / RemotingConnectorServer needs to happen before this.

      For version 2 of the protocol this association should happen after begin() is called i.e. the initial message exchange allows for the key/value pairs to be set to select the MBeanServer and then when begin is called the final association occurs. For version 1 we will be assuming only one MBeanServer or the MBeanServerLocator will need to select one with no properties, in this case will will assume begin has been called as soon as the connection is established.

      Although this change will move some of the initial negotiation of the connection out of the RemotingConnectorServer it is MANDATORY that for the initial version negotiation and for version 1 that there are no alterations to the protocol - version 2 however is a new protocol so AFTER it has been selected the protocol can diverge.

            darran.lofthouse@redhat.com Darran Lofthouse
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: