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

RFE: ability to specify connection timeout for a JMXConnector

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.0, 1.4.2, 5.0
    • core-svc
    • None

      JMXConnector.connect() will block for the default TCP connect timeout if the remote machine is unavailable. Unless the global VM settings are changed, this is of the order of a couple of minutes.

      It would be useful to be able to provide a timeout value for a connection, to be able to deal with error cases better.

      JMXConnector.connect(Map env)

      could take a new key/value pair to specify a connection timeout value, and then Socket.connect(SocketAddress, timeout) could be called underneath.
      ###@###.### 10/27/04 12:38 GMT

            hb Harsha Wardhana B (Inactive)
            nstephen Nick Stephen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: