Camel and Kafka Example

2017-02-09 Thread Ravindra Godbole
Hi Examples directory of camel distribution does not have one on Kafka component. I have created the same at the following URL: https://github.com/godbolerr/camel-example-kafka Is it fine to create a JIRA for the same and attach this as a patch ? -- - Ravi *[ View My Youtube Channel ]

Re: RabbitMQ Strange Behaviour

2017-02-09 Thread souciance
Which Camel version are you on? I would not expect it to send to the temporary queue which is created when you do request-reply messaging. On Fri, Feb 10, 2017 at 6:55 AM, ravindra [via Camel] < ml-node+s465427n5793741...@n5.nabble.com> wrote: > I am sending some messages from a Camel Route to Ra

RE: CAMEL-5595 (Unrecognized SSL message, plaintext connection?)

2017-02-09 Thread Goyal, Arpit
Anyone has idea on this one? Is setting 'proxyAuthScheme=http4' the only possible approach? Regards, Arpit. -Original Message- From: Goyal, Arpit [mailto:arpit.go...@sap.com] Sent: Wednesday, February 8, 2017 5:39 PM To: users@camel.apache.org Subject: CAMEL-5595 (Unrecognized SSL messa

RE: Camel Http vs Camel Http4 - Content Type Header

2017-02-09 Thread Goyal, Arpit
Thanks - I was doing that only, but in the meantime checking to see if anyone has any idea how to fix it? A workaround. Regards, Arpit. -Original Message- From: souciance [mailto:souciance.eqdam.ras...@gmail.com] Sent: Thursday, February 9, 2017 1:40 PM To: users@camel.apache.org Subje

Re: Camel Http vs Camel Http4 - Content Type Header

2017-02-09 Thread souciance
Well it should be pretty easy to setup a http server and see what headers your route are sending and compare that to what the actual server wants. If camel-http4 is suppressing some headers then perhaps try another component. On Thu, Feb 9, 2017 at 10:32 PM, Goyal, Arpit [via Camel] < ml-node+s465

Camel Http vs Camel Http4 - Content Type Header

2017-02-09 Thread Goyal, Arpit
Hi, We were on Camel-Http (2.16) and moving to Camel-Http4 (2.16) and saw that URL which worked with Camel-http now fails with Camel-Http4 with status code - 415 (Unsupported Media Type). Caused by: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http

Re: Removing headers

2017-02-09 Thread souciance
I tried every possible regex but for some reason it didn't work. Eventually I created a processor and removed the headers like below; exchange.getIn().getHeaders().keySet().removeAll(Collections.singleton("Accept")); exchange.getIn().getHeaders().keySet().removeAll(

CamelConfiguration wires all routes by default

2017-02-09 Thread Luciano Nunes
Hi everyone! I'm using Camel version 2.18.2 with Spring as IoC and dependency injection platform. According the documentation my AppConfig Spring class (annotated with @Configuration) extends the CamelConfiguration class. Some of my routes are being building dinamically with constructor arguments

Re: camel file redlock=idempotent-changed

2017-02-09 Thread Claus Ibsen
Search the internet and you can also search the Camel source code and for example see how it tests that functionality itself Also readLock=idempotent and idempotent-change are almost the same so you find use any of those examples you may find. Camel in Action 2 book covers this in the transaction

camel file redlock=idempotent-changed

2017-02-09 Thread Scisci
Hi, where I can find an example of redlock=idempotent-change for file component write in Spring DSL? Thanks Mirko -- View this message in context: http://camel.465427.n5.nabble.com/camel-file-redlock-idempotent-changed-tp5793722.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: Skip Footer / Last Line

2017-02-09 Thread souciance
I think you can add a processor and you can use java 8 streams to remove the last line. On Thu, Feb 9, 2017 at 10:53 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5793715...@n5.nabble.com> wrote: > There is no such option to skip last line. > > You can do a message transformation afterwards to

Re: Skip Footer / Last Line

2017-02-09 Thread Claus Ibsen
There is no such option to skip last line. You can do a message transformation afterwards to skip the line or remove the last etc using a bit of java code / simple / groovy etc. I am not sure if the CSV library supports a skip footer option but you are welcome to research. Or we can try adding th

Re: Idempotent SFTP route

2017-02-09 Thread Claus Ibsen
Hi Yeah you can use idempotent read lock strategy and use the database idempotent repository, or implement your own. The Camel in Action 2 book covers such an use case in the transaction chapter. And note that there is also idempotent-rename and idempotent-changed as strategies that combine the

Re: Idempotent SFTP route

2017-02-09 Thread Laurentiu Trica
Hi, You could implement your own lock strategy that should use a database to give the lock to the first server that requires it and deny for all the others. Good luck! On Thu, Feb 9, 2017 at 11:13 AM, garybarker wrote: > Is it possible to set up multiple servers connecting to the same remote >

Re: Evaluate JsonPath on string inside a Map

2017-02-09 Thread Frank Wein
souciance wrote: Not sure if this is what you are after but I have done it this way: .when(PredicateBuilder.isEqualTo(ExpressionBuilder.languageExpression("jsonpath","$.Status"), "whatyouwantequalto")) The $.Status is a node in the json string. -- View this message in context: http://camel

Idempotent SFTP route

2017-02-09 Thread garybarker
Is it possible to set up multiple servers connecting to the same remote SFTP server and guarantee that only one will consume each file there? A database backed idempotent table is the best way? Gary -- View this message in context: http://camel.465427.n5.nabble.com/Idempotent-SFTP-route-tp5793

Re: Not seeing query params on REST DSL

2017-02-09 Thread vikson
Hi Steve, Were you able to find a solution for your query. I'm facing the exact same issue; not able to read query params from the URL in case of the RESTLET component. I was earlier using the SERVLET component and I was able to read the query params as well as the header values from the incoming

Re: Kafka Producer Serialization Error

2017-02-09 Thread Webster
thanks, converting the json string to a string makes Kafka happy. Seems like a defect that this should be required -- View this message in context: http://camel.465427.n5.nabble.com/Kafka-Producer-Serialization-Error-tp5793630p5793702.html Sent from the Camel - Users mailing list archive at Na