Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4841496

JMXMP connector should have way to specify connection timeout

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.0, 1.4.2
    • core-svc
    • None

      JMXMP connector client should have a property, say com.sun.jmx.remote.connection.timeout, that controls the timeout when the TCP connection is established. Alternatively, this property could be standardized as jmx.remote.connection.timeout. It should be a string-valued property that specifies the timeout in seconds.

      Because the ability to specify a per-connection timeout was only introduced in J2SE 1.4, we will need to use reflection to ensure that the code still compiles and works on J2SE 1.3. Connection timeouts will not be available there. (A property java.net.connectiontimeout was introduced in JDK 1.3.1 but seems to have disappeared again in JDK 1.4, and anyway it applied to all connections, so I don't think we should try to use it.)

      I cannot see any way to get the same functionality with the RMI connector.

            sjiang Shanliang Jiang (Inactive)
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: