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

Disruptor consumers are not being invoked when using @ImportResource/@Bean and createConsumerTemplate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.24.1, 3.0.0.M4
    • Fix Version/s: None
    • Component/s: came-core, camel-spring
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I'm having a problem with disruptor consumers not being called (receiving messages) when switching from camel 2.17.1 to 2.24.1+ in a spring app. The code works fine with 2.17. 

      To recreate issue clone https://github.com/cmadsen/test-disruptor and:

      mvn test (fails)
      edit pom.xml so camel dep is 2.17.1
      mvn test (ok)

      alternatively keep camel 2.24 dep. and edit TestDisruptor.java and uncomment context.start() line and do mvn test (ok).

      It seems like calling createConsumerTemplate on a context that is not yet started stopped working in 2.18 and onwards. Playing with autoStartup="false" and doing getBean("camel").start() does not help which is odd as doing a manual context start when autoStartup="true" does work.

      With 3.0.0-M4 it does not work either but I do get a
      java.util.concurrent.RejectedExecutionException: CamelContext is stopped when trying to create the consumer.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cmadsen carsten madsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: