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

MQTT producer creation fails if network is not available at startup

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.17.2, 2.17.3
    • Fix Version/s: 2.19.0
    • Component/s: camel-mqtt
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Trying to use Camel in environment with unstable network came with following problem: when Camel context starts up with network not being available no matter what retry settings are set, the creation of the producer will fail, which will also by default mean failure in the creation of context.

      It would be good if behavior was similar to other components (like mina or netty), where producer tries to establish connection when it has a message to send (or periodically?)

      So, once network connection is created (maybe hours or days after creation) endpoint would be functional and all messages can be delivered given Guaranteed Delivery pattern is used.

      Can we avoid fatal exception on creation of the Endpoint?

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              dzalbo Vladimir Dzalbo

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment