processor not invoke from onException for exception raised from custom load balancer

2017-11-21 Thread 23patel patel
I have a processor which is called OnException .However when custom load balancer raises httpconnect exception the process associated with Exception is not raised. Below is the configuration http://camel.apache.org/schema/spring"; streamCache="true" typeConverterStatisticsEnabled="true">

Re: Why UriEndpointComponent is deprecated

2017-11-21 Thread Claus Ibsen
Just use default component tir. 21. nov. 2017 kl. 19.03 skrev Imran Raza Khan : > HI, > > I was developing custom component and i found that > UriEndpointComponent is deprecated, please confirm its deprecated and > whats alternative to it? > > public class MyComponent extends UriEndpointComponent

RE: Multiple instance of a camel service

2017-11-21 Thread Christine Vladic
Hi Claus, Thank you - I just got the book. Christine Vladic -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Tuesday, November 21, 2017 4:31 AM To: users@camel.apache.org Subject: Re: Multiple instance of a camel service Hi If you have a copy of the Camel in A

Why UriEndpointComponent is deprecated

2017-11-21 Thread Imran Raza Khan
HI, I was developing custom component and i found that UriEndpointComponent is deprecated, please confirm its deprecated and whats alternative to it? public class MyComponent extends UriEndpointComponent

RE: Re: Re: Camel: detect Kafka wrong IP

2017-11-21 Thread Schondorf, Yacov
We have purchased the book! Section 11.5.8 talks about "Bridging the consumer with Camel’s error handler". The example uses XML and I found no example using Java DSL. Since our project uses Kafka and Java DSL, I improvised, and added to https://github.com/apache/camel/blob/master/examples/camel

AW: Camel Stream caching seems not to delete the temporary files

2017-11-21 Thread christian.jacob
Hi Claus, it's Camel version 2.20.0 . Yes, I do use custom processors, but they are only working with the library I have mentioned. And this library only works with my temporary file. Actually, the next statement after my .to("file:...") is .setBody(simple("${null}") to make sure everything

Re: Camel Stream caching seems not to delete the temporary files

2017-11-21 Thread Claus Ibsen
What version of Camel do you use? Btw the message history does not copy the message body, so it should not be a problem. The source code you posted is that all your did, are you not doing something more, such as a custom processor / bean that works on the message body. On Tue, Nov 21, 2017 at 1

Re: Multiple instance of a camel service

2017-11-21 Thread Claus Ibsen
Hi If you have a copy of the Camel in Action 2nd ed book, then we have a full chapter on clustering Camel that covers use-cases like this. On Tue, Nov 21, 2017 at 1:07 PM, Zoran Regvart wrote: > Hi Christine, > I think you need idempotent consumer pattern[1], with this you can > track in an exte

Re: Camel Stream caching seems not to delete the temporary files

2017-11-21 Thread Zoran Regvart
Hi Christian, if you're not going to read from the body of the message multiple times you can disable stream caching. I think that the memory increase you see is due to message history, try disabling that[1]. If that fails to help perhaps you could provide an example that we can reproduce this? zo

Re: SporadSporadically camel sending messages to incorrect client

2017-11-21 Thread Zoran Regvart
Hi Madhusudan, it's hard to tell from your description what the cause could be, it would help if you provide Camel route or an example project and perhaps a stress test scenario that shows this. How do you detect that the responses are mismatched, could it be that the backend server creates identic

Re: Multiple instance of a camel service

2017-11-21 Thread Zoran Regvart
Hi Christine, I think you need idempotent consumer pattern[1], with this you can track in an external repository (multiple supported) what messages are processed. There is also a nice tutorial on how to use this pattern with Hazelcast[2] zoran [1] https://camel.apache.org/idempotent-consumer.html

Re: Instrument camel connector or endpoints

2017-11-21 Thread Zoran Regvart
Hi Christine, with version 2.20 Camel has health API[1] there is Spring Boot support for that also, checkout the example we have[2] zoran [1] https://issues.apache.org/jira/browse/CAMEL-10026 [2] https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot-health-checks On Fri

Apache camel capturing failover attempts before another failover does round robin

2017-11-21 Thread 23patel patel
I am using apache camel failover component with following route configuration: http://{{Jetty.entryPoint.host}}?matchOnUriPrefix=true"/> java.net.ConnectException I want to raise an email when ever connect exceptio