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

MQTT Endpoint disconnects on failure. Does not reconnect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.0
    • 2.13.4, 2.14.2, 2.15.0
    • camel-mqtt
    • None
    • Unknown

    Description

      When an error occurs in the Camel MQTT endpoint, the CallbackConnection onFailure callback simply disconnects the connection.

      At that point there doesn't seem to be any mechanism to reconnect to the broker.

                  public void onFailure(Throwable value) {
                      connection.disconnect(new Callback<Void>() {
                          public void onSuccess(Void value) {
                          }
      
                          public void onFailure(Throwable e) {
                              LOG.debug("Failed to disconnect from " + configuration.getHost() + ". This exception is ignored.", e);
                          }
                      });
                  }
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davydewaele Davy De Waele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: