carsten madsen created CAMEL-13866:
--------------------------------------

             Summary: Disruptor consumers are not being invoked when using 
@ImportResource/@Bean and createConsumerTemplate
                 Key: CAMEL-13866
                 URL: https://issues.apache.org/jira/browse/CAMEL-13866
             Project: Camel
          Issue Type: Bug
          Components: came-core, camel-spring
    Affects Versions: 3.0.0.M4, 2.24.1
            Reporter: carsten madsen


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.

 

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to