Please correct ids to be unique among all your routes.

2018-03-20 Thread hrvoje . djurdjevic
Hi, if I try to build this code: package org.mycompany; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model.rest.RestParamType; public class MyFirstRouterBuilder extends RouteBuilder { @Override public void configure() throws Exception { try{ re

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Claus Ibsen
Hi Yeah for SB then it tend to not do that, see the couple of spring-boot testing examples here https://github.com/camelinaction/camelinaction2/tree/master/chapter9 Your Camel routes tend to be in their own classes, that you would run "in production". What you do with the embedded inlined route

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Wilson MacGyver
Oh really? So would you suggest I just don’t extend any base class at all? On Tue, Mar 20, 2018 at 10:53 AM Claus Ibsen wrote: > On Tue, Mar 20, 2018 at 3:21 PM, Wilson MacGyver > wrote: > > Oh I didn’t know that there was CamelSpringTestSupport! Thank you! Will > try > > it > > > > Just a mind

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Claus Ibsen
On Tue, Mar 20, 2018 at 3:21 PM, Wilson MacGyver wrote: > Oh I didn’t know that there was CamelSpringTestSupport! Thank you! Will try > it > Just a mind that CamelSpringTestSupport was created many years ago before Spring Boot, and thus is more suitable for old fashioned Spring apps such as WARs

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Wilson MacGyver
Oh I didn’t know that there was CamelSpringTestSupport! Thank you! Will try it On Tue, Mar 20, 2018 at 6:09 AM Claus Ibsen wrote: > Hi > > Okay so the issue is that you have a spring-boot application and you > extend CamelTestSupport which performs some initialization that happen > to do bean po

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Claus Ibsen
Hi Okay so the issue is that you have a spring-boot application and you extend CamelTestSupport which performs some initialization that happen to do bean post processing as well, but under the assumption it was not running with Spring (we can likely improve this in CamelTestSupport). But you shou

RE: Rép. : RE: Camel cxf: Send message with multiple message-parts

2018-03-20 Thread Shenavai, Manuel
Hi Daniel, thanks for your response. I agree with you. But changing the body to the suggested content, throws the following error: Caused by: java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation an