Re: Consume annotation not working when used with Spring XML

2021-12-20 Thread Steve973
Hi, Claus. Thanks for the reply, and apologies for any ambiguity in my previous email. This is the dynamic router component that I am writing. I got this test working by extending CamelTestSupport in my @CamelSpringTest class. I am not sure which particular magic of the CamelTestSupport class m

Re: Consume annotation not working when used with Spring XML

2021-12-20 Thread Claus Ibsen
Hi It depends how this bean is created - as it needs to be created either by camel or spring to kick in the bean post processor that scans for those annotations. If the bean is created via new XXX or some other way then this does not happen. And when you say component class not sure what that is,

Consume annotation not working when used with Spring XML

2021-12-19 Thread Steve973
Hello. I have a component class that includes a method that is annotated with @Consume. In tests, if I manually wire things up, and then invoke a bean post processor, it does indeed consume from the URI obtained from the specified property. However, I am writing some Spring XML (not spring boot)