Re: Pojo @Consumer Annotation

2015-06-16 Thread Claus Ibsen
Ah its the timer that sends an empty body. The timer always sends a null body. The @Consume is for POJO routing where you do not need to write a Camel route. So for example remove the route with the timer. Though to bootstrap the @Consumer it depends a bit how you run Camel. To have the @Consume

Re: Pojo @Consumer Annotation

2015-06-16 Thread kalber
Done, in.body is still null. Route : - from("timer://?repeatCount=1").bean(MyService.class) Bean public class MyService { @Consume(uri = "sql: select codaz, codbus, logmsg from bus.buslogger where loglev = 'STS_CFG'?dataSource=#dataSource.nagios") public void process(Excha

Re: Apache Camel Routing and Apache CXF Rest with Proxy

2015-06-16 Thread Bhavesh Mistry
Adding Dev group to see how I can achieve this. Thanks, Bhavesh On Mon, Jun 15, 2015 at 2:56 PM, Bhavesh Mistry wrote: > Hi All, > > > > I am new to Apache Camel and trying to solve following problem with > routing: > > > > I have CXF JAX-RS based REST Service implemented and deployed in same

Re: spring boot, jpa, entitymanagers and Java DSL

2015-06-16 Thread erik_romson
Yes but it works "as normal" I was just debugging and fooled by the proxies when checking which one it was. It is the same. -- View this message in context: http://camel.465427.n5.nabble.com/spring-boot-jpa-entitymanagers-and-Java-DSL-tp5768055p5768317.html Sent from the Camel - Users mailing

Re: spring boot, jpa, entitymanagers and Java DSL

2015-06-16 Thread erik_romson
Yes thanks I found that out. I was fooled when debugging because the one it was using, was wrapped in proxies, so that I didn't see that. When you use spring boot, it uses the "normal one" derived from "spring.datasource.url" etc or the one annotated with @Primary which ends up as the one used by

Re: Pojo @Consumer Annotation

2015-06-16 Thread Claus Ibsen
Hi Okay what if you change the parameter to be Exchange. And then set a break point, what do you see? On Tue, Jun 16, 2015 at 10:52 AM, kalber wrote: > Hi, > > I use just the last version 2.15.2. > > > > > > - > kh > -- > View this message in context: > http://camel.465427.n5.nabble.com/P

Re: camel-file2 include with expression

2015-06-16 Thread Claus Ibsen
Hi No there is no plan. Its complicated if you have both reg exp and simple language in same. And include option has always been reg exp only. On Tue, Jun 16, 2015 at 3:25 PM, rwijngaa wrote: > Hi, > > I totally assumed the include option in the camel-file2 component also > supported > the simpl

Re: Remove breadcrumbId from Rest Service Response Headers

2015-06-16 Thread Karel Bernolet
The breadcrumbId you see is not the one from your service but the one for the Exchange created in your test. On Tue, Jun 16, 2015 at 3:23 PM, Alex Soto wrote: > Hi Willem, > > Thanks for the help; however I fail to understand why is the breadcrumbId > header present in the exchange during integ

camel-file2 include with expression

2015-06-16 Thread rwijngaa
Hi, I totally assumed the include option in the camel-file2 component also supported the simple language (like the move and preMove does for example) , so i thought i could do this include=*.gz.enc.${date:now:MMdd} to read only the files from today (but this didn't work as it should be a re

Re: Remove breadcrumbId from Rest Service Response Headers

2015-06-16 Thread Alex Soto
Hi Willem, Thanks for the help; however I fail to understand why is the breadcrumbId header present in the exchange during integration test and not when manually testing with curl. If not the HTTP component, then it must be ProducerTemplate who is adding back this header during integration te

RE: Moving failed files on FTP server

2015-06-16 Thread Gustav Sinder
Thanks! Seems I missed the documentation paragraph clearly saying "See File for more options as all the options from File is inherited" :/ Med vänlig hälsning / Kind regards Gustav Sinder Ferrologic AB    Mobile: +46 706 61 81 51 -Original Message- From: Claus Ibsen [mailto:claus.ib...@

Multiple CamelContext in separate bundles

2015-06-16 Thread jamalissimo
Hello, I have a project which consists of 20+ bundles. Each bundle has its own blueprint xml config file but there is only one main camel context for all the bundles: http://camel.apache.org/schema/blueprint";> . . . I would like to be able to de

Re: Moving failed files on FTP server

2015-06-16 Thread Claus Ibsen
Hi The moveFailed option should also be possible to use with ftp On Tue, Jun 16, 2015 at 12:36 PM, Gustav Sinder wrote: > Hi, > > I'm using the FTP adapter to fetch files from a remote server. Upon rollback > the files are rolled back and fetched again as expected. > Preferably I'd like be able

Moving failed files on FTP server

2015-06-16 Thread Gustav Sinder
Hi, I'm using the FTP adapter to fetch files from a remote server. Upon rollback the files are rolled back and fetched again as expected. Preferably I'd like be able to have the adapter move failed messages to a subfolder like the file adapter does with "moveFailed". I guess I could have another

Re: Pojo @Consumer Annotation

2015-06-16 Thread kalber
Hi, I use just the last version 2.15.2. - kh -- View this message in context: http://camel.465427.n5.nabble.com/Pojo-Consumer-Annotation-tp5768168p5768302.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Getting "Cannot determine current route from Exchange with id" message

2015-06-16 Thread Willem Jiang
Can you show us the camel route that you have? What kind of error that target endpoint get? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On June 15, 2015 at 4:17

Re: Validate DSL and message returned to client

2015-06-16 Thread Claus Ibsen
Hi No the validate dsl will use a predicate that returns true or false. If it returns false, then an exception is thrown. If you want to do some kind of custom error message etc. Then calling a bean is simpler. But we could consider adding some way of allowing validate dsl to use an expression t

Error while polling an Atom Feed

2015-06-16 Thread Richa
Hello, I have an AtomEnpoint in my camel route with the following configuration : AtomEndpoint atomEndpoint = new AtomEndpoint(); String inputEndPoint = "http://macstrac.blogspot.com/feeds/posts/default";; //Set the endpoint and feed URI. atomEndp