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

Camel-JMS: Suspending/resuming won't work in case of timeout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.16.5, 2.17.4, 2.18.1, 2.19.0
    • camel-jms
    • None
    • Unknown

    Description

      If you set for example a DefaultShutdownStrategy with a specific timeout and enqueue some messages on ActiveMQ that you'll consume from a consumer, in case you'll try to suspend the Consumer route and the timeout elapsed, the route will be stopped with a forced shutdown and then the doStop method will be used. In this scenario using resume won't have any effect since the listenerContainer will be null and unable to be restarted.

      I'll add just a simple message for this specific case suggesting the user to start the route again to make it works and set the initialized field to false when the doStop is called.

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            acosentino Andrea Cosentino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: