netty4 producer and default codec

2016-10-13 Thread Steve973
Hello. If I am creating a byte array to send via a netty4 tcp endpoint, should I disable the default codec? I want to ensure that the bytes are delivered simply as bytes, and not garbled by an encoding. Thanks, Steve

Re: CamelCdiRunner loads all routes in each test case (sometimes)

2016-10-13 Thread Antonin Stefanutti
Hi Dennis, > On 13 Oct 2016, at 14:22, Dennis Bohnstedt Hansen wrote: > > Hi > > I'm having soms problems with camel-test-cdi in 2.17 (tested in 2.17.0, > 2.17.1 and 2.17.2). > > I have two projects containing similar routes and test cases, but the > behaviour is very

Re: HTTP keeps retrying after maximumRedeliveries set

2016-10-13 Thread Val
For troubleshooting purposes, I split the route into 2, one with just sending HTTP message and another one doing reading from file + transformations. When I call the HTTP part only, it does try only once, like you said. But when I run the whole route from the file: point, if exception happens

simple language nullsafe expression fails on empty array

2016-10-13 Thread dmitriyC300
I may have found a limitation w/ simple language on the 1st index of an empty array with a nullsafe expression. Making sure list.size() > 0 in BeanExpression line 384 should address this use case. I'm happy to submit a pull request with a tweak & unit test case if that's helpful. public

Re: simple language nullsafe expression fails on empty array

2016-10-13 Thread Claus Ibsen
Hi Yeah sure we love contributions http://camel.apache.org/contributing On Thu, Oct 13, 2016 at 6:33 PM, dmitriyC300 wrote: > I may have found a limitation w/ simple language on the 1st index of an empty > array with a nullsafe expression. Making sure list.size() > 0 in

Camel Mail: Sending both text and html version of e-mail

2016-10-13 Thread dash
Hello. I need to send both /text/html/ and /text/plain/ versions in one email. Can this be done using Camel SMTP component? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Mail-Sending-both-text-and-html-version-of-e-mail-tp5788739.html Sent from the Camel - Users

Re: netty4 producer and default codec

2016-10-13 Thread souciance
You could create a test route which listens via netty4 tcp and see how it behaves with the default codec. If it reads properly then it should ok. Worst case, you may need to encode/decode it. On Thu, Oct 13, 2016 at 5:27 PM, Steve973 [via Camel] < ml-node+s465427n5788736...@n5.nabble.com> wrote:

Re: Looping in routes using Direct Component - Performance impact?

2016-10-13 Thread souciance
I think you should first run your route setup with a few pages, 10s of pages, hundreds of pages and then thousands of pages and then do performance tests to see where what is eating memory and optimise from there. On Fri, Oct 14, 2016 at 12:31 AM, Goyal, Arpit [via Camel] <

Re: camel-kafka Consumer to stop reading new messages and process only inflight messages.

2016-10-13 Thread Leo Prince
Thanks Claus, Graceful shutdown works for us. -- View this message in context: http://camel.465427.n5.nabble.com/camel-kafka-Consumer-to-stop-reading-new-messages-and-process-only-inflight-messages-tp5788693p5788740.html Sent from the Camel - Users mailing list archive at Nabble.com.

Looping in routes using Direct Component - Performance impact?

2016-10-13 Thread Goyal, Arpit
Hi, We currently are on 2.16.3 version and can't use the loop function (part of 2.17). So we have the following routes based on which we create sort of loop with switch case. Now we are worried about the performance (when we see stacktrace of camel processing) Route 1:

RE: Looping in routes using Direct Component - Performance impact?

2016-10-13 Thread Goyal, Arpit
I can't compromise my business logic and there is hardly any data; but each time camel Route 2 starts Route 1, the previous route processing goes onto stack. I only have limited stack after that any operation can fail. To me below approach seems risky...I need to go async or remove the looping

Re: netty4 producer and default codec

2016-10-13 Thread Steve973
We tried just taking our byte array and wrapping it in a netty ByteBuf. I read that it's one of the two ways that you can do it. Either that or use a ByteArrayEncoder. Thoughts? And thanks for your suggestion, too! On Thu, Oct 13, 2016 at 5:41 PM, souciance

RE: HTTP keeps retrying after maximumRedeliveries set

2016-10-13 Thread Siano, Stephan
Hi, it's not the HTTP producer endpoint that keeps retrying the message. That endpoint just fails and then the processing is complete. However this means that the file consumer in your route does not delete or move the file, so it's still there and the processing starts again with the next

Re: Camel Kafka compliance Matrix

2016-10-13 Thread Claus Ibsen
You should likely ask Kafka project. camel-kafka uses the kafka java client and its more what it support than what Camel support. Also depends on what version of Camel you use, older versions used the scala kafka client which is older versions of Kafka etc. On Thu, Oct 13, 2016 at 11:01 AM,

HTTP keeps retrying after maximumRedeliveries set

2016-10-13 Thread Val
Hello, Could you please advise why automatic retries happen even if I set maximumRedeliveries to 0? Basically I just want to disable retries. And also, how do I print HTTP response body in case it’s an error code? ${exception} only has a short description that HTTP call to my URL failed

Camel SQL

2016-10-13 Thread dpravin
Hi, I am trying to invoke a select count(*) from table1 or select count(pk_id) from table1. I am using SQL and do get the result in the body in following format, [{COUNT(*)=10}] or [{COUNT(PK_ID)=10}]. I would like to use the response to do some conditional routing. How do I get the result from

How to consume remote rest url and how to write given json response in a text file.

2016-10-13 Thread Gunjara
Hi someone can help me on this, How to consume remote rest url and how to write given json response in a text file. i have remote url like this http://yourhost.domain/path/to/rest/resource/productid=1234=10122016 I need how to add parameters dynamically. and i need to consume that if i use

Re: How to consume remote rest url and how to write given json response in a text file.

2016-10-13 Thread xenz
Hello., Have you looked at http://camel.apache.org/http4.html and http://camel.apache.org/file2.html You can use toD for the dynamic bit on the http4 consumer to add your variables. I am not exactly what you are looking for but hopefully this is a good start. - J On Thu, 13 Oct 2016, 21:26

Re: HTTP keeps retrying after maximumRedeliveries set

2016-10-13 Thread xenz
Hello, You shouldn't need to set the max retry count to 0 as it is the default. If that is the full log I suspect that is one try, try enabling debug logging or checking the Web servers access togs to confirm. The first two are info then the error stating it tried once. Exhausted after delivery

Re: Route Start order in Camel

2016-10-13 Thread Claus Ibsen
1) yes 2) just set a startup order with a high value (> 1000). The values < 1000 is for auto configured startup ordering. The Camel in Action book explains this in much more details. On Thu, Oct 13, 2016 at 11:15 AM, Debraj Manna wrote: > Hi > > I have gone through

Camel Kafka compliance Matrix

2016-10-13 Thread habdank
Dears, Is there somewhere documented which Version of the Camel Kafka works with which version of Kafka? The main problem is that currently Kafka changes much protocol and there is a problem to communicate e.g. Kafka 0.9.0.0 clients/consumers with Kafka 0.10.0.0 servers/producers and vice versa.

Route Start order in Camel

2016-10-13 Thread Debraj Manna
Hi I have gone through this documentation "Configuring starting order for Routes ". Can some one please explain my following doubts:-

Re: ognl issue w/ list expression & spring boot?

2016-10-13 Thread dmitriyC300
Created CAMEL-10385 & corresponding pull request -- View this message in context: http://camel.465427.n5.nabble.com/ognl-issue-w-list-expression-spring-boot-tp5788692p5788714.html Sent from the Camel - Users mailing list archive at Nabble.com.

Understanding streamCache in camel

2016-10-13 Thread ravi21588
Hi All, i would like to understand how streamCache works. i have created two routes,one route with streamCache enabled and another without streamCache.Iam not able to find the difference.Iam assuming log component will also be considered as a camel process. Route One

Avro component example

2016-10-13 Thread owain
Hi, Has anyone had any success converting a body (pojo) to an avro message via the avro component. I have generated the avro serialiser for the avro message bit I am struggling with the documentation and questions online. I am planning to send the avro message to some other routes via kakfa and

CamelCdiRunner loads all routes in each test case (sometimes)

2016-10-13 Thread Dennis Bohnstedt Hansen
Hi I'm having soms problems with camel-test-cdi in 2.17 (tested in 2.17.0, 2.17.1 and 2.17.2). I have two projects containing similar routes and test cases, but the behaviour is very different, and i'm unsure which is the intended behaviour. In both projects, my RouteBuilders are annotated with

flink component

2016-10-13 Thread ms123
Hello, has anybody the flink component used? The documentation is very scarce and the example does not really help Thanks in advance! Best regards, Manfred Sattler -- View this message in context: http://camel.465427.n5.nabble.com/flink-component-tp5788730.html Sent from the Camel - Users