Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5613

Provide robust connection support for JMX consumers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.11.0
    • camel-jmx
    • None
    • Patch Available
    • Unknown

    Description

      A Camel JMX consumer that connects to a JMX server on the network currently needs the JMX server to be active before the consumer is started. The consumer also has no ability to re-initialize lost connections to the JMX server.

      The attached patch eliminates the timing dependency between the JMX consumer and JMX server, by allowing the JMX consumer to optionally poll for the JMX server connection at startup. The patch also allows the consumer to optionally re-initialize (via polling) connections to a JMX server after an active connection is broken.

      The patch enables the following URI parameters for JMX consumers :

      • testConnectionOnStartup – if true the consumer will throw an exception if unable to establish the JMX connection upon startup. If false, the consumer will attempt to establish the JMX connection every 'x' seconds until the connection is made – where 'x' is the configured reconnectDelay. Default is true.
      • reconnectOnConnectionFailure – If true the consumer will attempt to reconnect to the JMX server when any connection failure occurs. The consumer will attempt to re-establish the JMX connection every 'x' seconds until the connection is made-- where 'x' is the configured reconnectDelay. Default is false.
      • reconnectDelay – The number of seconds to wait before attempting to retry establishment of the initial connection or attempt to reconnect a lost connection. Default is 10 seconds.

      Attachments

        1. CAMEL-5613.patch
          22 kB
          Rich Newcomb

        Activity

          People

            davsclaus Claus Ibsen
            rnewcomb Rich Newcomb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: