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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.24.1, 3.0.0.M4
    • None
    • came-core, camel-spring
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: