Re: Cannot auto create component: vm

2019-07-17 Thread Claus Ibsen
Hi Java 11 is not supported with this older version of Camel. Try with a newer version of Camel On Wed, Jul 17, 2019 at 3:56 PM Steve Pan wrote: > > Hi. > I am trying to migrate a project from Spring 3.0.3 and camel 2.8.3 to > Spring 4.1.5 and camel 2.15.0 > I am trying to run it on Tomcat 9.

Cannot auto create component: vm

2019-07-17 Thread Steve Pan
Hi. I am trying to migrate a project from Spring 3.0.3 and camel 2.8.3 to Spring 4.1.5 and camel 2.15.0 I am trying to run it on Tomcat 9.0.12 and open JDK 11.0.3 And in my spring xml, there is a proxy as below But I get “Cannot auto create component: vm” error? Any idea why vm component ca

CDi bean call from cxfrs resource class

2019-07-17 Thread Zoltán Balogh
Hi, possible to call a CDI bean from a cxfrs resourceclass or register the resource class as CDI bean? (Wildfly Camel 4.9.0) from("cxfrs:http://localhost:8080/tua-kodtar/rest?resourceClasses=hu.fornax.tua.kodtar.rest.KodtarRESTImpl&performInvocation=true) @Named("kodtarRESTImpl") public class Ko

Re: How to fix Missing ${ from the text: error - Apache Camel 2.12 to 2.16.4 uprade

2019-07-17 Thread Claus Ibsen
Hi Looks like you mix $simple{ and ${ Use just $simple{ On Tue, Jul 16, 2019 at 5:32 PM Rajiv Jacob Cheriyan wrote: > > Hello, > > We are upgrading from Apache Camel 2.12 to 2.16.4 and running into issues > with one of the routes. > > Caused by: java.lang.IllegalArgumentException: Missing ${ fr

Re: exchange.getIn().setBody() does not work for OnException block

2019-07-17 Thread Claus Ibsen
Use exchange.getMessage() And if you really want to use IN or OUT then check with exchange.hasOut() first On Wed, Jul 17, 2019 at 9:41 AM Wang Yan wrote: > > According to document ( > https://camel.apache.org/using-getin-or-getout-methods-on-exchange.html), > when we modify body of exchange, we

exchange.getIn().setBody() does not work for OnException block

2019-07-17 Thread Wang Yan
According to document ( https://camel.apache.org/using-getin-or-getout-methods-on-exchange.html), when we modify body of exchange, we should use exchange.getIn().setBody() instead of exchange.getOut().setBody() It ususally works. but for OnException block, it does not work , I have to use exchange