Camel Jetty & Cors not working

2017-04-03 Thread urwithsumit
Hi, I am using Camel 2.18.2 and exposing REST api using camel Jetty component. The enableCORS options is set to true. Still the call to the API from angular 2 application is getting exception for CORS. Definition for the REST URI: from("jetty:{{server.api.endpoint}}/file_monitor/report/all_file_

RE: Camel Http vs Camel Http4 - Content Type Header

2017-04-03 Thread Goyal, Arpit
Hi Claus, HttpProduce -- from camel-http4 library is setting the content-type 'text/plain' in method [1] line # 488 (camel version 2.16.3) even though we have set the Content-Type to be NULL - This is NOT the case with HttpProducer - from camel-http library. By enabling the apache commons lo

javax.xml.bind.JAXBException: doesnt contain ObjectFactory.class or jaxb.index

2017-04-03 Thread Gary
thank you in advance I have my jaxb annotated class path defined in the Jaxb contextPath, I also have the jaxb.index file with the simple name of the annotated class in it. I continue to get the error in subject. I even added the jaxb.index physically under my classpath. Java 1.7, camel 2.15

Name of the method with proxy

2017-04-03 Thread Cristiano Costantini
Hello, when using proxy in Camel (http://camel.apache.org/using-camelproxy.html) in camel after 2.16.3 where "*parameter binding is enabled by default*", how can I retrieve the name of the invoked method? previously, on Camel 2.15, I used to "choice" over the method name extracted with simple wit

TELUS Health

2017-04-03 Thread Erin Bailey
TELUS Health is currently looking for a Senior Developer Analyst with Apache Camel experience to join our TELUS Health Exchange Product Development team in either Toronto, Montreal or Ottawa. https://telus.taleo.net/careersection/1.th/jobdetail.ftl?lang=en&job=HEA02758-17 If interested, ple

AggregationStrategy: null body in new exchange

2017-04-03 Thread JD Innocenti
Hi all, I'm having a problem with the AggregationStrategy I implemented for an application. In short, the newExchange parameters I receive (to follow the same naming convention as in the documentation ) always have a null body. To elaborate: my route

Re: Curious routing case

2017-04-03 Thread Artur Jablonski
Hi Zoran, Thank you for such detailed response. This looks very promising. i will need to get my head around the aggregator pattern. For this week I will be busy with other tasks, but I will get back to it as soon as I can to see if I can get Camel work for the use case. Cheerio Artur On Mon, Ap

Re: Curious routing case

2017-04-03 Thread Zoran Regvart
Hi Artur, I was thinking that the order of the messages would be important as you need to process them sequentially. So I think you could use the dynamic message routing[1] with aggregator[2], something like: from("aws-sqs:...") .process("#preProcess") .toD("direct:${header.ne

Re: Using ConsumerTemplate to fetch files.

2017-04-03 Thread Zoran Regvart
Hi Dilip, doesn't a single ftp route with fileExist=Move fulfil your requirements? You mention that you use direct routes so starting from a direct route with body set to payload of the new file to be uploaded to the FTP server and CamelFileName header set to the file name: from("direct:uploa

Re: Using ConsumerTemplate to fetch files.

2017-04-03 Thread dilip.pashupathi
Hi, Basic idea here is to capture any exception that may occur due to failure in FTP connections or any other form of exception. Since the process is happening inside the contentBackupProcessor, Camel is basically ignoring the exception and continuing with the next operation as if nothing wrong h